Skip to content

Commit

Permalink
Admin: Add admin dashboard to account menu (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored Oct 22, 2024
1 parent cb33640 commit 2d906db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<%= _('Account') %>
</a>
<ul class="dropdown-menu" aria-labelledby="accountDropdownMenuLink">
<% if current_user.admin? %>
<li>
<%= link_to _('Admin Dashboard'), admin_root_path, class: "dropdown-item" %>
</li>
<% end %>
<li>
<%= link_to _('Edit Login Details'), edit_user_registration_path, class: "dropdown-item" %>
</li>
Expand Down

0 comments on commit 2d906db

Please sign in to comment.