_admin.html.haml 2.47 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
  = nav_link do
28
    = link_to ci_admin_projects_path, title: 'Continuous Integration' do
29 30 31
      = icon('building fw')
      %span
        Continuous Integration
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
32
  = nav_link(controller: :logs) do
33
    = link_to admin_logs_path, title: 'Logs' do
34
      = icon('file-text fw')
35 36
      %span
        Logs
37
  = nav_link(controller: :broadcast_messages) do
38
    = link_to admin_broadcast_messages_path, title: 'Messages' do
39
      = icon('bullhorn fw')
40 41
      %span
        Messages
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
42
  = nav_link(controller: :hooks) do
43
    = link_to admin_hooks_path, title: 'Hooks' do
44
      = icon('external-link fw')
45 46
      %span
        Hooks
47
  = nav_link(controller: :background_jobs) do
48
    = link_to admin_background_jobs_path, title: 'Background Jobs' do
49
      = icon('cog fw')
50 51
      %span
        Background Jobs
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
52

Valery Sizov's avatar
Valery Sizov committed
53
  = nav_link(controller: :applications) do
54
    = link_to admin_applications_path, title: 'Applications' do
55
      = icon('cloud fw')
Valery Sizov's avatar
Valery Sizov committed
56
      %span
57
        Applications
58

59
  = nav_link(controller: :services) do
60
    = link_to admin_application_settings_services_path, title: 'Service Templates' do
61
      = icon('copy fw')
62 63 64
      %span
        Service Templates

Valery Sizov's avatar
Valery Sizov committed
65
  = nav_link(controller: :labels) do
66
    = link_to admin_labels_path, title: 'Labels' do
Valery Sizov's avatar
Valery Sizov committed
67 68 69 70
      = icon('tags fw')
      %span
        Labels

71
  = nav_link(controller: :abuse_reports) do
72
    = link_to admin_abuse_reports_path, title: "Abuse Reports" do
73 74 75 76 77
      = icon('exclamation-circle fw')
      %span
        Abuse Reports
        %span.count= AbuseReport.count(:all)

78
  = nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do
79
    = link_to admin_application_settings_path, title: 'Settings' do
80
      = icon('cogs fw')
81 82
      %span
        Settings