debian-mirror-gitlab/app/views/layouts/nav/_profile.html.haml

51 lines
1.6 KiB
Text
Raw Normal View History

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