2015-02-12 07:59:54 -08:00
|
|
|
%li.dropdown.profile--image-dropdown
|
|
|
|
%a.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)}
|
2015-02-12 08:50:13 -08:00
|
|
|
%span.visible-xs
|
|
|
|
= current_user.screen_name
|
|
|
|
%b.caret
|
2015-04-19 07:49:53 -07:00
|
|
|
%ul.dropdown-menu
|
|
|
|
%li.dropdown-header.hidden-xs= current_user.screen_name
|
|
|
|
%li
|
|
|
|
%a{href: show_user_profile_path(current_user.screen_name)}
|
|
|
|
%i.fa.fa-fw.fa-user
|
2015-06-08 12:51:46 -07:00
|
|
|
= t('views.navigation.show')
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: edit_user_registration_path}
|
|
|
|
%i.fa.fa-fw.fa-cog
|
2015-06-08 12:51:46 -07:00
|
|
|
= t('views.navigation.settings')
|
2015-02-12 07:37:07 -08:00
|
|
|
%li.divider
|
2020-04-19 13:35:58 -07:00
|
|
|
- if current_user.has_role?(:administrator)
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: rails_admin_path}
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
2015-06-08 12:51:46 -07:00
|
|
|
= t('views.navigation.admin')
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: sidekiq_web_path}
|
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
2015-06-08 12:51:46 -07:00
|
|
|
= t('views.navigation.sidekiq')
|
2015-08-26 12:37:29 -07:00
|
|
|
%li
|
|
|
|
%a{href: pghero_path}
|
|
|
|
%i.fa.fa-fw.fa-database
|
|
|
|
Database Monitor
|
|
|
|
%li.divider
|
2015-02-12 07:37:07 -08:00
|
|
|
- if current_user.mod?
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: moderation_path}
|
|
|
|
%i.fa.fa-fw.fa-gavel
|
2015-06-08 12:51:46 -07:00
|
|
|
= t('views.navigation.moderation')
|
2015-02-12 07:37:07 -08:00
|
|
|
%li.divider
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: destroy_user_session_path, data: {method: :delete} }
|
|
|
|
%i.fa.fa-fw.fa-sign-out
|
2015-06-08 07:01:16 -07:00
|
|
|
= t 'views.sessions.destroy'
|