_session.html.haml revision a15356219c6331b10fc816dbb636b641eaa2425d
%ul.nav.navbar-nav.navbar-right
- if user_signed_in?
%li.dropdown.user-dropdown
= link_to '#', {class: 'dropdown-toggle', 'data-toggle' => 'dropdown'} do
#{current_user.name}
%b.caret
%ul.dropdown-menu
%li
= link_to edit_user_registration_path do
Account
- if current_user.display_alert?
%strong.badge !
%li= link_to admin? ? 'Your Teams' : 'Teams', :teams
%li= link_to 'SSH Keys', :keys
- if admin?
%li.divider{role: 'presentation'}
= menu_entry 'Users', :admin_users
= menu_entry 'Teams', :admin_teams
= menu_entry 'Jobs', :admin_jobs
= menu_entry 'Status', :admin_status
%li.divider{role: 'presentation'}
%li= link_to 'Sign out', :destroy_user_session, method: :delete
- elsif not cover_visible?
%li= link_to 'Sign in/up', [:root]