2020-04-26 05:29:23 -07:00
|
|
|
%li.nav-item.dropdown.profile--image-dropdown
|
|
|
|
%a.nav-link.dropdown-toggle{href: "#", "data-toggle" => "dropdown"}
|
2015-04-19 07:49:53 -07:00
|
|
|
%img.profile--image-avatar.hidden-xs{src: current_user.profile_picture.url(:small)}
|
2020-04-19 14:13:39 -07:00
|
|
|
%span.d-none.d-sm-inline.d-md-none
|
2015-02-12 08:50:13 -08:00
|
|
|
= current_user.screen_name
|
|
|
|
%b.caret
|
2020-04-19 14:13:39 -07:00
|
|
|
.dropdown-menu
|
|
|
|
%h6.dropdown-header.hidden-xs= current_user.screen_name
|
|
|
|
%a.dropdown-item{href: show_user_profile_path(current_user.screen_name)}
|
|
|
|
%i.fa.fa-fw.fa-user
|
|
|
|
= t('views.navigation.show')
|
|
|
|
%a.dropdown-item{href: edit_user_registration_path}
|
|
|
|
%i.fa.fa-fw.fa-cog
|
|
|
|
= t('views.navigation.settings')
|
|
|
|
.dropdown-divider
|
2020-04-19 13:35:58 -07:00
|
|
|
- if current_user.has_role?(:administrator)
|
2020-04-19 14:13:39 -07:00
|
|
|
%a.dropdown-item{href: rails_admin_path}
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
|
|
|
= t('views.navigation.admin')
|
|
|
|
%a.dropdown-item{href: sidekiq_web_path}
|
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
|
|
|
= t('views.navigation.sidekiq')
|
|
|
|
%a.dropdown-item{href: pghero_path}
|
|
|
|
%i.fa.fa-fw.fa-database
|
|
|
|
Database Monitor
|
2020-04-25 04:14:01 -07:00
|
|
|
%a.dropdown-item{href: announcement_index_path}
|
|
|
|
%i.fa.fa-fw.fa-info
|
|
|
|
Announcements
|
2020-04-19 14:13:39 -07:00
|
|
|
.dropdown-divider
|
2015-02-12 07:37:07 -08:00
|
|
|
- if current_user.mod?
|
2020-04-19 14:13:39 -07:00
|
|
|
%a.dropdown-item{href: moderation_path}
|
|
|
|
%i.fa.fa-fw.fa-gavel
|
|
|
|
= t('views.navigation.moderation')
|
|
|
|
.dropdown-divider
|
|
|
|
%a.dropdown-item{href: destroy_user_session_path, data: {method: :delete} }
|
|
|
|
%i.fa.fa-fw.fa-sign-out
|
|
|
|
= t 'views.sessions.destroy'
|