asciinema.org/web/views/layout_view.ex

11 lines
297 B
Elixir
Raw Normal View History

2016-08-22 03:15:42 +00:00
defmodule Asciinema.LayoutView do
use Asciinema.Web, :view
2016-08-30 03:40:18 +00:00
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
2016-08-22 03:15:42 +00:00
end