Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_profile.html.haml « nav « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1159a8fbd754ebd2531be8d31de8070658c73e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%ul.nav.nav-sidebar
  = nav_link do
    = link_to root_path, title: 'Back to dashboard', data: {toggle: 'tooltip', placement: 'right', container: 'body'}, class: 'back-link' do
      = icon('caret-square-o-left fw')
      %span
        Back to Dashboard

  %li.separate-item

  = nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
    = link_to profile_path, title: 'Profile', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('user fw')
      %span
        Profile
  = nav_link(controller: [:accounts, :two_factor_auths]) do
    = link_to profile_account_path, title: 'Account', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('gear fw')
      %span
        Account
  = nav_link(path: ['profiles#applications', 'applications#edit', 'applications#show', 'applications#new', 'applications#create']) do
    = link_to applications_profile_path, title: 'Applications', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('cloud fw')
      %span
        Applications
  = nav_link(controller: :emails) do
    = link_to profile_emails_path, title: 'Emails', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('envelope-o fw')
      %span
        Emails
        %span.count= current_user.emails.count + 1
  - unless current_user.ldap_user?
    = nav_link(controller: :passwords) do
      = link_to edit_profile_password_path, title: 'Password', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
        = icon('lock fw')
        %span
          Password
  = nav_link(controller: :notifications) do
    = link_to profile_notifications_path, title: 'Notifications', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('inbox fw')
      %span
        Notifications

  = nav_link(controller: :keys) do
    = link_to profile_keys_path, title: 'SSH Keys', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('key fw')
      %span
        SSH Keys
        %span.count= current_user.keys.count
  = nav_link(controller: :preferences) do
    = link_to profile_preferences_path, title: 'Preferences', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      -# TODO (rspeicher): Better icon?
      = icon('image fw')
      %span
        Preferences
  = nav_link(path: 'profiles#audit_log') do
    = link_to audit_log_profile_path, title: 'Audit Log', data: {toggle: 'tooltip', placement: 'right', container: 'body'} do
      = icon('history fw')
      %span
        Audit Log