asciinema.org/web/views/layout_view.ex
2017-06-02 15:40:24 +02:00

11 lines
297 B
Elixir

defmodule Asciinema.LayoutView do
use Asciinema.Web, :view
def page_title(conn) do
case conn.assigns[:page_title] do
nil -> "asciinema - Record and share your terminal sessions, the right way"
title -> title <> " - asciinema" # TODO return safe string here?
end
end
end