Skip to content

Commit

Permalink
auth navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 17, 2025
1 parent 34e43aa commit 2273e08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/views/admin/_auth_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
<span><%= current_member.name %></span>
</div>
<div class="navbar-dropdown is-right">
<%= link_to({ controller: '/me/home' }, data: { turbo_frame: '_top' }, class: active_helper(controllers: ['me/home'], active: 'navbar-item is-active', item: 'navbar-item')) do %>
<%= link_to({ controller: '/me/home', **current_organ.admin_url_options(request, auth_token: current_authorized_token.id) }, data: { turbo_frame: '_top' }, class: active_helper(controllers: ['me/home'], active: 'navbar-item is-active', item: 'navbar-item')) do %>
<span><%= t('me.home.index.title') %></span>
<% end %>
<%= link_to({ controller: '/admin/home', **current_organ.admin_url_options(request, auth_token: current_authorized_token.id) }, class: active_helper(controllers: ['admin/home'], active: 'navbar-item is-active', item: 'navbar-item')) do %>
<span><%= t('admin.home.index.title') %></span>
<% end %>
<%= link_to({ debug_mode: true }, class: active_helper(debug_mode: true, active: 'navbar-item is-active', item: 'navbar-item')) do %>
<span>Debug Mode</span>
<% end %>
Expand Down

0 comments on commit 2273e08

Please sign in to comment.