Retrospring/app/views/layouts/_profile.html.haml

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-02-12 07:59:54 -08:00
%li.dropdown.profile--image-dropdown
%a.dropdown-toggle{href: "#", "data-toggle" => "dropdown"}
%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
%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')
%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
- if current_user.admin?
%li
%a{href: rails_admin_path}
%i.fa.fa-fw.fa-cogs
2015-06-08 12:51:46 -07:00
= t('views.navigation.admin')
%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?
%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
%li
%a{href: destroy_user_session_path, data: {method: :delete} }
%i.fa.fa-fw.fa-sign-out
= t 'views.sessions.destroy'