You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/web/views/layout_view.ex

12 lines
365 B
Elixir

defmodule Asciinema.LayoutView do
use Asciinema.Web, :view
import Asciinema.UserView, only: [avatar_url: 1, profile_path: 1]
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