_admin.html.haml 9.38 KB
Newer Older
1
.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?) }
2 3
  .nav-sidebar-inner-scroll
    .context-header
4
      = link_to admin_root_path, title: _('Admin Overview') do
5
        .avatar-container.s40.settings-avatar
6
          = sprite_icon('admin', size: 24)
7 8
        .sidebar-context-title
          = _('Admin Area')
9
    %ul.sidebar-top-level-items
10
      = nav_link(controller: %w(dashboard admin projects users groups jobs runners gitaly_servers cohorts conversational_development_index), html_options: {class: 'home'}) do
11
        = link_to admin_root_path, class: 'shortcuts-tree' do
12
          .nav-icon-container
13
            = sprite_icon('overview')
14
          %span.nav-item-name
15
            = _('Overview')
16
        %ul.sidebar-sub-level-items
17
          = nav_link(controller: %w(dashboard admin projects users groups jobs runners gitaly_servers cohorts conversational_development_index), html_options: { class: "fly-out-top-item" } ) do
18 19
            = link_to admin_root_path do
              %strong.fly-out-top-item-name
20
                = _('Overview')
21
          %li.divider.fly-out-top-item
22
          = nav_link(controller: :dashboard, html_options: {class: 'home'}) do
23
            = link_to admin_root_path, title: _('Overview') do
24
              %span
25
                = _('Dashboard')
26
          = nav_link(controller: [:admin, :projects]) do
27
            = link_to admin_projects_path, title: _('Projects') do
28
              %span
29
                = _('Projects')
30
          = nav_link(controller: :users) do
31
            = link_to admin_users_path, title: _('Users') do
32
              %span
33
                = _('Users')
34
          = nav_link(controller: :groups) do
35
            = link_to admin_groups_path, title: _('Groups') do
36
              %span
37
                = _('Groups')
38
          = nav_link path: 'jobs#index' do
39
            = link_to admin_jobs_path, title: _('Jobs') do
40
              %span
41
                = _('Jobs')
42
          = nav_link path: ['runners#index', 'runners#show'] do
43
            = link_to admin_runners_path, title: _('Runners') do
44
              %span
45
                = _('Runners')
46 47 48
          = nav_link(controller: :gitaly_servers) do
            = link_to admin_gitaly_servers_path, title: 'Gitaly Servers' do
              %span
49
                = _('Gitaly Servers')
50
          = nav_link path: 'cohorts#index' do
51
            = link_to instance_statistics_cohorts_path, title: _('Cohorts') do
52 53 54
              %span
                = _('Cohorts')
          = nav_link(controller: :conversational_development_index) do
55
            = link_to instance_statistics_conversational_development_index_index_path, title: _('ConvDev Index') do
56 57
              %span
                = _('ConvDev Index')
58

59
      = nav_link(controller: %w(system_info background_jobs logs health_check requests_profiles)) do
60
        = link_to admin_system_info_path do
61
          .nav-icon-container
62
            = sprite_icon('monitor')
63
          %span.nav-item-name
64
            = _('Monitoring')
65

66
        %ul.sidebar-sub-level-items
67 68
          = nav_link(controller: %w(system_info background_jobs logs health_check requests_profiles), html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_system_info_path do
69
              %strong.fly-out-top-item-name
70
                = _('Monitoring')
71
          %li.divider.fly-out-top-item
72
          = nav_link(controller: :system_info) do
73
            = link_to admin_system_info_path, title: _('System Info') do
74
              %span
75
                = _('System Info')
76
          = nav_link(controller: :background_jobs) do
77
            = link_to admin_background_jobs_path, title: _('Background Jobs') do
78
              %span
79
                = _('Background Jobs')
80
          = nav_link(controller: :logs) do
81
            = link_to admin_logs_path, title: _('Logs') do
82
              %span
83
                = _('Logs')
84
          = nav_link(controller: :health_check) do
85
            = link_to admin_health_check_path, title: _('Health Check') do
86
              %span
87
                = _('Health Check')
88
          = nav_link(controller: :requests_profiles) do
89
            = link_to admin_requests_profiles_path, title: _('Requests Profiles') do
90
              %span
91
                = _('Requests Profiles')
92

93
      = nav_link(controller: :broadcast_messages) do
94
        = link_to admin_broadcast_messages_path do
95
          .nav-icon-container
96
            = sprite_icon('messages')
97
          %span.nav-item-name
98
            = _('Messages')
99 100 101 102
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :broadcast_messages, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_broadcast_messages_path do
              %strong.fly-out-top-item-name
103
                = _('Messages')
104

105
      = nav_link(controller: [:hooks, :hook_logs]) do
106
        = link_to admin_hooks_path do
107
          .nav-icon-container
108
            = sprite_icon('hook')
109
          %span.nav-item-name
110
            = _('System Hooks')
111 112 113 114
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: [:hooks, :hook_logs], html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_hooks_path do
              %strong.fly-out-top-item-name
115
                = _('System Hooks')
116

117
      = nav_link(controller: :applications) do
118
        = link_to admin_applications_path do
119
          .nav-icon-container
120
            = sprite_icon('applications')
121
          %span.nav-item-name
122
            = _('Applications')
123 124 125 126
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :applications, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_applications_path do
              %strong.fly-out-top-item-name
127
                = _('Applications')
128

129
      = nav_link(controller: :abuse_reports) do
130
        = link_to admin_abuse_reports_path do
131
          .nav-icon-container
132
            = sprite_icon('slight-frown')
133
          %span.nav-item-name
134
            = _('Abuse Reports')
135
          %span.badge.badge-pill.count= number_with_delimiter(AbuseReport.count(:all))
136 137
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :abuse_reports, html_options: { class: "fly-out-top-item" } ) do
megos's avatar
megos committed
138
            = link_to admin_abuse_reports_path do
139
              %strong.fly-out-top-item-name
140
                = _('Abuse Reports')
141
              %span.badge.badge-pill.count.merge_counter.js-merge-counter.fly-out-badge= number_with_delimiter(AbuseReport.count(:all))
142

143 144
      - if akismet_enabled?
        = nav_link(controller: :spam_logs) do
145
          = link_to admin_spam_logs_path do
146
            .nav-icon-container
147
              = sprite_icon('spam')
148
            %span.nav-item-name
149
              = _('Spam Logs')
150 151 152 153
          %ul.sidebar-sub-level-items.is-fly-out-only
            = nav_link(controller: :spam_logs, html_options: { class: "fly-out-top-item" } ) do
              = link_to admin_spam_logs_path do
                %strong.fly-out-top-item-name
154
                  = _('Spam Logs')
155

156
      = nav_link(controller: :deploy_keys) do
157
        = link_to admin_deploy_keys_path do
158
          .nav-icon-container
159
            = sprite_icon('key')
160
          %span.nav-item-name
161
            = _('Deploy Keys')
162 163 164 165
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :deploy_keys, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_deploy_keys_path do
              %strong.fly-out-top-item-name
166
                = _('Deploy Keys')
167

168
      = nav_link(controller: :services) do
169
        = link_to admin_application_settings_services_path do
170
          .nav-icon-container
171
            = sprite_icon('template')
172
          %span.nav-item-name
173
            = _('Service Templates')
174 175 176 177
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :services, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_application_settings_services_path do
              %strong.fly-out-top-item-name
178
                = _('Service Templates')
179

180
      = nav_link(controller: :labels) do
181
        = link_to admin_labels_path do
182
          .nav-icon-container
183
            = sprite_icon('labels')
184
          %span.nav-item-name
185
            = _('Labels')
186 187 188 189
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :labels, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_labels_path do
              %strong.fly-out-top-item-name
190
                = _('Labels')
191

192
      = nav_link(controller: :appearances) do
193
        = link_to admin_appearances_path do
194
          .nav-icon-container
195
            = sprite_icon('appearance')
196
          %span.nav-item-name
197
            = _('Appearance')
198 199 200 201
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :appearances, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_appearances_path do
              %strong.fly-out-top-item-name
202
                = _('Appearance')
203 204

      = nav_link(controller: :application_settings) do
205
        = link_to admin_application_settings_path do
206
          .nav-icon-container
207
            = sprite_icon('settings')
208
          %span.nav-item-name
209
            = _('Settings')
210 211 212 213
        %ul.sidebar-sub-level-items.is-fly-out-only
          = nav_link(controller: :application_settings, html_options: { class: "fly-out-top-item" } ) do
            = link_to admin_application_settings_path do
              %strong.fly-out-top-item-name
214
                = _('Settings')
215

216
    = render 'shared/sidebar_toggle_button'