2015-04-26 12:48:37 +05:30
|
|
|
%ul.nav.nav-sidebar
|
2015-09-11 14:41:01 +05:30
|
|
|
= nav_link do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to root_path, title: 'Go to dashboard', class: 'back-link' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('caret-square-o-left fw')
|
|
|
|
%span
|
2015-11-26 14:37:03 +05:30
|
|
|
Go to dashboard
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
%li.separate-item
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_path, title: 'Profile Settings' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('user fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
2015-09-25 12:07:36 +05:30
|
|
|
Profile Settings
|
2015-09-11 14:41:01 +05:30
|
|
|
= nav_link(controller: [:accounts, :two_factor_auths]) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_account_path, title: 'Account' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('gear fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
Account
|
2015-09-11 14:41:01 +05:30
|
|
|
= nav_link(path: ['profiles#applications', 'applications#edit', 'applications#show', 'applications#new', 'applications#create']) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to applications_profile_path, title: 'Applications' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('cloud fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
Applications
|
2014-09-02 18:07:02 +05:30
|
|
|
= nav_link(controller: :emails) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_emails_path, title: 'Emails' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('envelope-o fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
Emails
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.count= number_with_delimiter(current_user.emails.count + 1)
|
2014-09-02 18:07:02 +05:30
|
|
|
- unless current_user.ldap_user?
|
|
|
|
= nav_link(controller: :passwords) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to edit_profile_password_path, title: 'Password' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('lock fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
Password
|
2014-09-02 18:07:02 +05:30
|
|
|
= nav_link(controller: :notifications) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_notifications_path, title: 'Notifications' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('inbox fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
Notifications
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
= nav_link(controller: :keys) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_keys_path, title: 'SSH Keys' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('key fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
|
|
|
SSH Keys
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.count= number_with_delimiter(current_user.keys.count)
|
2015-09-11 14:41:01 +05:30
|
|
|
= nav_link(controller: :preferences) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to profile_preferences_path, title: 'Preferences' do
|
2015-09-11 14:41:01 +05:30
|
|
|
-# TODO (rspeicher): Better icon?
|
|
|
|
= icon('image fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
2015-09-11 14:41:01 +05:30
|
|
|
Preferences
|
|
|
|
= nav_link(path: 'profiles#audit_log') do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to audit_log_profile_path, title: 'Audit Log' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('history fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
2015-09-11 14:41:01 +05:30
|
|
|
Audit Log
|