29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
|
%li.dropdown
|
||
|
%a.dropdown-toggle{href: "#", "data-toggle" => "dropdown"}
|
||
|
%img.img-rounded.answerbox--img.hidden-xs{src: current_user.profile_picture.url(:small)}
|
||
|
%span.visible-xs= current_user.screen_name
|
||
|
%b.caret
|
||
|
%ul.dropdown-menu.profile--dropdown
|
||
|
%li.hidden-xs
|
||
|
.media.profile--dropdown-media
|
||
|
.pull-left
|
||
|
%img.img-rounded.profile--dropdown-img{src: current_user.profile_picture.url(:medium)}
|
||
|
.media-body
|
||
|
- if @user.display_name.blank?
|
||
|
.profile--displayname
|
||
|
= @user.screen_name
|
||
|
- else
|
||
|
.profile--displayname
|
||
|
= @user.display_name
|
||
|
.profile--username
|
||
|
= @user.screen_name
|
||
|
%li= link_to "View profile", show_user_profile_path(current_user.screen_name)
|
||
|
%li= link_to "Settings", edit_user_registration_path
|
||
|
%li.divider
|
||
|
- if current_user.admin?
|
||
|
%li= link_to "Kontrollzentrum", rails_admin_path
|
||
|
%li= link_to "Sidekiq", sidekiq_web_path
|
||
|
- if current_user.mod?
|
||
|
%li= link_to "Moderation panel", moderation_path
|
||
|
%li.divider
|
||
|
%li= link_to "Logout", destroy_user_session_path, method: :delete
|