upgrade to phoenix 1.7
This commit is contained in:
17
lib/cannery_web/components/layouts.ex
Normal file
17
lib/cannery_web/components/layouts.ex
Normal file
@ -0,0 +1,17 @@
|
||||
defmodule CanneryWeb.Layouts do
|
||||
@moduledoc """
|
||||
The root layouts for the entire application
|
||||
"""
|
||||
|
||||
use CanneryWeb, :html
|
||||
|
||||
embed_templates "layouts/*"
|
||||
|
||||
def get_title(%{assigns: %{title: title}}) when title not in [nil, ""] do
|
||||
gettext("Cannery | %{title}", title: title)
|
||||
end
|
||||
|
||||
def get_title(_conn) do
|
||||
gettext("Cannery")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user