Skip to content
Snippets Groups Projects
Verified Commit 793abf82 authored by tribut's avatar tribut :man_dancing:
Browse files

Order "admin" before "logout"

This makes it consistent with the mobile navigation.
parent 27ab09e3
Branches
No related tags found
No related merge requests found
...@@ -55,11 +55,10 @@ ...@@ -55,11 +55,10 @@
<%= link_to user_assignments_path(current_user), class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" do %> <%= link_to user_assignments_path(current_user), class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" do %>
<span>My Assignments</span> <span>My Assignments</span>
<% end %> <% end %>
<%= link_to "Logout", destroy_user_session_path, data: { turbo_method: :delete }, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
<% if current_user.has_role?("admin") || current_user.has_role?("events_admin") %> <% if current_user.has_role?("admin") || current_user.has_role?("events_admin") %>
<%= link_to "Admin", admin_root_path, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %> <%= link_to "Admin", admin_root_path, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
<% end %> <% end %>
<%= link_to "Logout", destroy_user_session_path, data: { turbo_method: :delete }, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
</div> </div>
<!-- User avatar always visible --> <!-- User avatar always visible -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment