_nav_admin.html.haml 1023 Bytes
Newer Older
1 2
%ul.nav.nav-sidebar
  = nav_link do
3
    = link_to admin_root_path, title: 'Back to admin', data: {placement: 'right'}, class: 'back-link' do
4 5
      = icon('caret-square-o-left fw')
      %span
6
        Back to admin
7 8

  %li.separate-item
Douwe Maan's avatar
Douwe Maan committed
9
  = nav_link path: 'projects#index' do
10
    = link_to ci_admin_projects_path do
11
      = icon('list-alt fw')
12
      Projects
Douwe Maan's avatar
Douwe Maan committed
13
  = nav_link path: 'events#index' do
14
    = link_to ci_admin_events_path do
15
      = icon('book fw')
16
      Events
Kamil Trzcinski's avatar
Kamil Trzcinski committed
17
  = nav_link path: ['runners#index', 'runners#show'] do
18
    = link_to ci_admin_runners_path do
19
      = icon('cog fw')
20 21 22
      Runners
      %small.pull-right
        = Ci::Runner.count(:all)
Douwe Maan's avatar
Douwe Maan committed
23
  = nav_link path: 'builds#index' do
24
    = link_to ci_admin_builds_path do
25
      = icon('link fw')
26 27 28 29 30
      Builds
      %small.pull-right
        = Ci::Build.count(:all)
  = nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do
    = link_to ci_admin_application_settings_path do
31
      = icon('cogs fw')
32 33
      %span
        Settings