_profile.html.haml 2.16 KB
Newer Older
1
%ul.nav.nav-sidebar
2
  = nav_link do
3
    = link_to root_path, title: 'Go to dashboard', data: {placement: 'right'}, class: 'back-link' do
4 5
      = icon('caret-square-o-left fw')
      %span
6
        Go to dashboard
7 8 9

  %li.separate-item

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10
  = nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
11
    = link_to profile_path, title: 'Profile', data: {placement: 'right'} do
12
      = icon('user fw')
13
      %span
14
        Profile Settings
15
  = nav_link(controller: [:accounts, :two_factor_auths]) do
16
    = link_to profile_account_path, title: 'Account', data: {placement: 'right'} do
17
      = icon('gear fw')
18 19
      %span
        Account
20
  = nav_link(path: ['profiles#applications', 'applications#edit', 'applications#show', 'applications#new', 'applications#create']) do
21
    = link_to applications_profile_path, title: 'Applications', data: {placement: 'right'} do
22
      = icon('cloud fw')
23 24
      %span
        Applications
25
  = nav_link(controller: :emails) do
26
    = link_to profile_emails_path, title: 'Emails', data: {placement: 'right'} do
27
      = icon('envelope-o fw')
28 29 30
      %span
        Emails
        %span.count= current_user.emails.count + 1
31 32
  - unless current_user.ldap_user?
    = nav_link(controller: :passwords) do
33
      = link_to edit_profile_password_path, title: 'Password', data: {placement: 'right'} do
34
        = icon('lock fw')
35 36
        %span
          Password
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
37
  = nav_link(controller: :notifications) do
38
    = link_to profile_notifications_path, title: 'Notifications', data: {placement: 'right'} do
39
      = icon('inbox fw')
40 41
      %span
        Notifications
42

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
43
  = nav_link(controller: :keys) do
44
    = link_to profile_keys_path, title: 'SSH Keys', data: {placement: 'right'} do
45
      = icon('key fw')
46 47 48
      %span
        SSH Keys
        %span.count= current_user.keys.count
49 50 51
  = nav_link(controller: :preferences) do
    = link_to profile_preferences_path, title: 'Preferences', data: {placement: 'right'} do
      -# TODO (rspeicher): Better icon?
52
      = icon('image fw')
53
      %span
54
        Preferences
55 56
  = nav_link(path: 'profiles#audit_log') do
    = link_to audit_log_profile_path, title: 'Audit Log', data: {placement: 'right'} do
57
      = icon('history fw')
58
      %span
59
        Audit Log