defmodule WebClientWeb.LayoutView do use WebClientWeb, :view # Phoenix LiveDashboard is available only in development by default, # so we instruct Elixir to not warn if the dashboard route is missing. @compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}} def html_head(assigns) do ~H""" <.link_highlight_js /> <%= csrf_meta_tag() %> <%= live_title_tag assigns[:page_title] || "WebClient", suffix: " ยท Altex" %> """ end def header(assigns) do ~H"""
<%= link gettext("Altex"), to: "/pages" %>
<%= link gettext("T.C.B."), to: "/" %>
<%= gettext "Node: " %><%= System.get_env("ALTEX_INSTANCE") %>
<%= if Plug.Conn.get_session(@conn, :current_user) do %> <%= link gettext("Sign out"), to: "/sign_out" %> <% else %> <%= link gettext("Sign in"), to: "/sign_in" %> <% end %>
""" end def footer(assigns) do ~H""" """ end def link_highlight_js(assigns) do ~H""" """ end end