mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
32 lines
779 B
Plaintext
32 lines
779 B
Plaintext
- if discourse_configured?
|
|
%li
|
|
%a{href: main_app.discourse_login_path, target: '_blank'}
|
|
%span.nav-primary
|
|
= t 'label_notices'
|
|
|
|
%li.user-menu.has-dropdown.not-click
|
|
|
|
%a{href: "#", class: "top-bar--menu-item-with-icon"}
|
|
%img{ src: "/assets/menu/icn-profile.svg" }
|
|
%span
|
|
= t '.profile'
|
|
|
|
%ul.dropdown
|
|
|
|
- if admin_user? or enterprise_user?
|
|
%li
|
|
%a{href: spree.admin_dashboard_path, target:'_blank'}
|
|
%i.ofn-i_021-tools
|
|
= t 'label_administration'
|
|
|
|
%li
|
|
%a{href: spree.account_path}
|
|
%i.ofn-i_015-user
|
|
= t 'label_account'
|
|
= "(" + spree_current_user.email + ")"
|
|
|
|
%li
|
|
%a{title: t('label_logout'), href:'/logout' }
|
|
%i.ofn-i_018-unlocked
|
|
= t 'label_logout'
|