_admin.html.haml 2.73 KB
Newer Older
1
%ul.nav.nav-sidebar
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2 3
  = nav_link(controller: :dashboard, html_options: {class: 'home'}) do
    = link_to admin_root_path, title: "Stats" 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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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 28 29 30 31
  = nav_link path: ['runners#index', 'runners#show'] do
    = link_to admin_runners_path do
      = icon('cog fw')
      %span
        Runners
32
        %span.count= number_with_delimiter(Ci::Runner.count(:all))
33 34 35 36 37
  = nav_link path: 'builds#index' do
    = link_to admin_builds_path do
      = icon('link fw')
      %span
        Builds
38
        %span.count= number_with_delimiter(Ci::Build.count(:all))
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
59

Valery Sizov's avatar
Valery Sizov committed
60
  = nav_link(controller: :applications) do
61
    = link_to admin_applications_path, title: 'Applications' do
62
      = icon('cloud fw')
Valery Sizov's avatar
Valery Sizov committed
63
      %span
64
        Applications
65

66
  = nav_link(controller: :services) do
67
    = link_to admin_application_settings_services_path, title: 'Service Templates' do
68
      = icon('copy fw')
69 70 71
      %span
        Service Templates

Valery Sizov's avatar
Valery Sizov committed
72
  = nav_link(controller: :labels) do
73
    = link_to admin_labels_path, title: 'Labels' do
Valery Sizov's avatar
Valery Sizov committed
74 75 76 77
      = icon('tags fw')
      %span
        Labels

78
  = nav_link(controller: :abuse_reports) do
79
    = link_to admin_abuse_reports_path, title: "Abuse Reports" do
80 81 82
      = icon('exclamation-circle fw')
      %span
        Abuse Reports
83
        %span.count= number_with_delimiter(AbuseReport.count(:all))
84

85
  = nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do
86
    = link_to admin_application_settings_path, title: 'Settings' do
87
      = icon('cogs fw')
88 89
      %span
        Settings