BigW Consortium Gitlab

_profile.html.haml 1.31 KB
Newer Older
1
%ul.nav.nav-sidebar
2 3
  = nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
    = link_to profile_path, title: "Profile" do
4
      %i.fa.fa-user
5 6
      %span
        Profile
7
  = nav_link(controller: :accounts) do
8 9 10
    = link_to profile_account_path do
      %i.fa.fa-gear
      Account
11 12
  = nav_link(controller: :emails) do
    = link_to profile_emails_path do
13
      %i.fa.fa-envelope-o
14 15 16
      %span
        Emails
        %span.count= current_user.emails.count + 1
17 18
  - unless current_user.ldap_user?
    = nav_link(controller: :passwords) do
19 20
      = link_to edit_profile_password_path do
        %i.fa.fa-lock
21 22
        %span
          Password
23
  = nav_link(controller: :notifications) do
24 25
    = link_to profile_notifications_path do
      %i.fa.fa-inbox
26 27
      %span
        Notifications
28

29
  = nav_link(controller: :keys) do
30
    = link_to profile_keys_path do
31
      %i.fa.fa-key
32 33 34
      %span
        SSH Keys
        %span.count= current_user.keys.count
35
  = nav_link(path: 'profiles#design') do
36 37
    = link_to design_profile_path do
      %i.fa.fa-image
38 39
      %span
        Design
40
  = nav_link(controller: :groups) do
41 42
    = link_to profile_groups_path do
      %i.fa.fa-group
43 44
      %span
        Groups
45
  = nav_link(path: 'profiles#history') do
46 47
    = link_to history_profile_path do
      %i.fa.fa-history
48 49
      %span
        History
50