Skip to content

Commit

Permalink
Add dashboard link for signed in users
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuma committed Apr 9, 2024
1 parent badaa2c commit 2a66b95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/uro_web/templates/layout/app.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<%= if UroWeb.Helpers.Auth.signed_in?(@conn) do %>
<li><%= gettext("Signed in as:%{username}", username: safe_to_string(link(UroWeb.Helpers.Auth.session_display_name(@conn), to: Routes.profile_path(@conn, :show)))) |> raw() %></li>
<ul class="session_buttons">
<li><%= link gettext("Dashboard"), to: Routes.dashboard_root_path(@conn, :index) %></li>
<li><%= link gettext("Sign Out"), to: Routes.signout_path(@conn, :delete), method: :post %></li>
<%= if UroWeb.Helpers.Admin.is_session_admin?(@conn) do %>
<li><%= link gettext("Admin Panel"), to: Routes.admin_root_path(@conn, :index) %></li>
Expand Down

0 comments on commit 2a66b95

Please sign in to comment.