Files
nairobi/app/components/layout/account_menu_component.html.erb
Javi Martín 64536f069c Extract component for account/admin menu links
This way we remove the duplication in the layouts which had these links.

Since we're now passing the `current_user` option to partials in all
cases, IMHO the code is easier to follow if we use the
`Layout::NotificationItemComponent` instead of its partial.
2023-01-16 14:22:23 +01:00

6 lines
248 B
Plaintext

<ul class="menu" data-responsive-menu="medium-dropdown">
<%= render "shared/admin_login_items", current_user: user %>
<%= render Layout::NotificationItemComponent.new(user) %>
<%= render "devise/menu/login_items", current_user: user %>
</ul>