2014-12-25 08:13:45 +00:00
|
|
|
%ul.nav.nav-sidebar
|
2013-04-01 19:30:48 +00:00
|
|
|
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to profile_path, title: 'Profile', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('user fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
Profile
|
2015-05-06 17:35:55 +00:00
|
|
|
= nav_link(controller: [:accounts, :two_factor_auths]) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to profile_account_path, title: 'Account', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('gear fw')
|
2014-12-29 11:58:01 +00:00
|
|
|
%span
|
|
|
|
Account
|
2015-06-14 15:35:03 +00:00
|
|
|
= nav_link(path: ['profiles#applications', 'applications#edit', 'applications#show', 'applications#new', 'applications#create']) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to applications_profile_path, title: 'Applications', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('cloud fw')
|
2014-12-25 18:51:07 +00:00
|
|
|
%span
|
|
|
|
Applications
|
2014-02-09 03:08:49 +00:00
|
|
|
= nav_link(controller: :emails) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to profile_emails_path, title: 'Emails', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('envelope-o fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
Emails
|
|
|
|
%span.count= current_user.emails.count + 1
|
2013-10-09 13:37:37 +00:00
|
|
|
- unless current_user.ldap_user?
|
|
|
|
= nav_link(controller: :passwords) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to edit_profile_password_path, title: 'Password', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('lock fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
Password
|
2013-04-01 19:30:48 +00:00
|
|
|
= nav_link(controller: :notifications) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to profile_notifications_path, title: 'Notifications', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('inbox fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
Notifications
|
2014-12-17 10:44:36 +00:00
|
|
|
|
2013-04-01 19:30:48 +00:00
|
|
|
= nav_link(controller: :keys) do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to profile_keys_path, title: 'SSH Keys', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('key fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
SSH Keys
|
|
|
|
%span.count= current_user.keys.count
|
2015-06-05 18:00:21 +00:00
|
|
|
= nav_link(controller: :preferences) do
|
|
|
|
= link_to profile_preferences_path, title: 'Preferences', data: {placement: 'right'} do
|
|
|
|
-# TODO (rspeicher): Better icon?
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('image fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
2015-06-05 18:00:21 +00:00
|
|
|
Preferences
|
2013-04-01 19:30:48 +00:00
|
|
|
= nav_link(path: 'profiles#history') do
|
2015-04-25 20:03:03 +00:00
|
|
|
= link_to history_profile_path, title: 'History', data: {placement: 'right'} do
|
2015-04-23 18:29:00 +00:00
|
|
|
= icon('history fw')
|
2014-12-25 08:13:45 +00:00
|
|
|
%span
|
|
|
|
History
|