diff options
Diffstat (limited to 'lib/lsg_web/templates/layout')
-rw-r--r-- | lib/lsg_web/templates/layout/app.html.eex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex index 4c2ad44..1871e8b 100644 --- a/lib/lsg_web/templates/layout/app.html.eex +++ b/lib/lsg_web/templates/layout/app.html.eex @@ -1,16 +1,32 @@ <!DOCTYPE html> <html lang="en"> <head> + <%= page_title(@conn) %> <meta charset="utf-8"> <meta name="robots" content="noindex, nofollow, nosnippet"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="noindex, noarchive, nofollow, nosnippet" /> + <title><%= Map.get(assigns, :title, "") %></title> <link rel="stylesheet" href="<%= static_path(@conn, "/assets/css/app.css") %>"> </head> <body> <div class="container"> <main role="main"> + <%= if !@conn.assigns[:no_header] do %> + <h1> + <small style="font-size: 14px;"> + <a href="/"><%= Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot") %></a> + <%= if @conn.assigns[:account], do: @conn.assigns.account.name %> + › + <%= if n = @conn.assigns[:network] do %><a href="/<%= n %>"><%= n %></a> › <% end %> + <%= if c = @conn.assigns[:chan] do %><a href="/<%= @conn.assigns.network %>/<%= LSGWeb.format_chan(c) %>"><%= c %></a> › <% end %> + <%= for({name, href} <- @conn.assigns[:breadcrumbs]||[], do: [link(name, to: href), raw(" › ")]) %> + </small><br /> + <%= @conn.assigns[:title] || @conn.assigns[:chan] || @conn.assigns[:network] %> + </h1> + <% end %> <%= render @view_module, @view_template, assigns %> </main> </div> |