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"""
<%= 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