_session.html.haml revision 0066a6426ec36416aabb4cf9a677d31ca19b43d1
- if user_signed_in?
= link_to '#', {class: 'dropdown-toggle', 'data-toggle' => 'dropdown'} do
%li
= link_to edit_user_registration_path do
Account
%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
%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]