gitlab-org--gitlab-foss/app/views/layouts/nav/_profile.html.haml

57 lines
1.5 KiB
Text
Raw Normal View History

%ul.nav.nav-sidebar
2013-04-01 15:30:48 -04:00
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
= link_to profile_path, title: "Profile" do
%i.fa.fa-user
%span
Profile
2013-10-09 09:37:37 -04:00
= nav_link(controller: :accounts) do
= link_to profile_account_path do
%i.fa.fa-gear
%span
Account
= nav_link(path: ['profiles#applications', 'applications#edit', 'applications#show', 'applications#new']) do
= link_to applications_profile_path do
%i.fa.fa-cloud
%span
Applications
= nav_link(controller: :emails) do
= link_to profile_emails_path do
%i.fa.fa-envelope-o
%span
Emails
%span.count= current_user.emails.count + 1
2013-10-09 09:37:37 -04:00
- unless current_user.ldap_user?
= nav_link(controller: :passwords) do
= link_to edit_profile_password_path do
%i.fa.fa-lock
%span
Password
2013-04-01 15:30:48 -04:00
= nav_link(controller: :notifications) do
= link_to profile_notifications_path do
%i.fa.fa-inbox
%span
Notifications
2013-04-01 15:30:48 -04:00
= nav_link(controller: :keys) do
= link_to profile_keys_path do
%i.fa.fa-key
%span
SSH Keys
%span.count= current_user.keys.count
2013-04-01 15:30:48 -04:00
= nav_link(path: 'profiles#design') do
= link_to design_profile_path do
%i.fa.fa-image
%span
Design
= nav_link(controller: :groups) do
= link_to profile_groups_path do
%i.fa.fa-group
%span
Groups
2013-04-01 15:30:48 -04:00
= nav_link(path: 'profiles#history') do
= link_to history_profile_path do
%i.fa.fa-history
%span
History
2013-04-01 15:30:48 -04:00