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
|
|
|
|
View profile
|
|
|
|
%li
|
|
|
|
%a{href: edit_user_registration_path}
|
|
|
|
%i.fa.fa-fw.fa-cog
|
|
|
|
Settings
|
2015-02-12 07:37:07 -08:00
|
|
|
%li.divider
|
|
|
|
- if current_user.admin?
|
2015-04-19 07:49:53 -07:00
|
|
|
%li
|
|
|
|
%a{href: rails_admin_path}
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
|
|
|
Kontrollzentrum
|
|
|
|
%li
|
|
|
|
%a{href: sidekiq_web_path}
|
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
|
|
|
Sidekiq
|
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
|
|
|
|
Moderation Panel
|
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
|
|
|
|
Logout
|