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.
6 lines
248 B
Plaintext
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>
|