BigW Consortium Gitlab

_admin.html.haml 3.18 KB
Newer Older
1
%ul.nav.nav-sidebar
2
  = nav_link(controller: :dashboard, html_options: {class: 'home'}) do
3
    = link_to admin_root_path, title: 'Overview' do
4
      = icon('dashboard fw')
5 6
      %span
        Overview
7
  = nav_link(controller: [:admin, :projects]) do
8
    = link_to admin_namespaces_projects_path, title: 'Projects' do
9
      = icon('cube fw')
10 11
      %span
        Projects
12
  = nav_link(controller: :users) do
13
    = link_to admin_users_path, title: 'Users' do
14
      = icon('user fw')
15 16
      %span
        Users
17
  = nav_link(controller: :groups) do
18
    = link_to admin_groups_path, title: 'Groups' do
19
      = icon('group fw')
20 21
      %span
        Groups
22
  = nav_link(controller: :deploy_keys) do
23
    = link_to admin_deploy_keys_path, title: 'Deploy Keys' do
24
      = icon('key fw')
25 26
      %span
        Deploy Keys
27
  = nav_link path: ['runners#index', 'runners#show'] do
28
    = link_to admin_runners_path, title: 'Runners' do
29 30 31
      = icon('cog fw')
      %span
        Runners
32
        %span.count= number_with_delimiter(Ci::Runner.count(:all))
33
  = nav_link path: 'builds#index' do
34
    = link_to admin_builds_path, title: 'Builds' do
35 36 37
      = icon('link fw')
      %span
        Builds
38
        %span.count= number_with_delimiter(Ci::Build.count(:all))
39
  = nav_link(controller: :logs) do
40
    = link_to admin_logs_path, title: 'Logs' do
41
      = icon('file-text fw')
42 43
      %span
        Logs
44
  = nav_link(controller: :broadcast_messages) do
45
    = link_to admin_broadcast_messages_path, title: 'Messages' do
46
      = icon('bullhorn fw')
47 48
      %span
        Messages
49
  = nav_link(controller: :hooks) do
50
    = link_to admin_hooks_path, title: 'Hooks' do
51
      = icon('external-link fw')
52 53
      %span
        Hooks
54
  = nav_link(controller: :background_jobs) do
55
    = link_to admin_background_jobs_path, title: 'Background Jobs' do
56
      = icon('cog fw')
57 58
      %span
        Background Jobs
59 60 61 62 63
  = nav_link(controller: :appearances) do
    = link_to admin_appearances_path, title: 'Appearances' do
      = icon('image')
      %span
        Appearance
64

65
  = nav_link(controller: :applications) do
66
    = link_to admin_applications_path, title: 'Applications' do
67
      = icon('cloud fw')
68
      %span
69
        Applications
70

71
  = nav_link(controller: :services) do
72
    = link_to admin_application_settings_services_path, title: 'Service Templates' do
73
      = icon('copy fw')
74 75 76
      %span
        Service Templates

Valery Sizov committed
77
  = nav_link(controller: :labels) do
78
    = link_to admin_labels_path, title: 'Labels' do
Valery Sizov committed
79 80 81 82
      = icon('tags fw')
      %span
        Labels

83
  = nav_link(controller: :abuse_reports) do
84
    = link_to admin_abuse_reports_path, title: "Abuse Reports" do
85 86 87
      = icon('exclamation-circle fw')
      %span
        Abuse Reports
88
        %span.count= number_with_delimiter(AbuseReport.count(:all))
89

90 91 92 93 94 95 96
  - if askimet_enabled?
    = nav_link(controller: :spam_logs) do
      = link_to admin_spam_logs_path, title: "Spam Logs" do
        = icon('exclamation-triangle fw')
        %span
          Spam Logs
          %span.count= number_with_delimiter(SpamLog.count(:all))
97

98
  = nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do
99
    = link_to admin_application_settings_path, title: 'Settings' do
100
      = icon('cogs fw')
101 102
      %span
        Settings