debian-mirror-gitlab/app/views/layouts/nav/_admin.html.haml

90 lines
2.7 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%ul.nav.nav-sidebar
2014-09-02 18:07:02 +05:30
= nav_link(controller: :dashboard, html_options: {class: 'home'}) do
= link_to admin_root_path, title: "Stats" do
2015-09-11 14:41:01 +05:30
= icon('dashboard fw')
2015-04-26 12:48:37 +05:30
%span
Overview
2015-09-25 12:07:36 +05:30
= nav_link(controller: [:admin, :projects]) do
2015-12-23 02:04:40 +05:30
= link_to admin_namespaces_projects_path, title: 'Projects' do
2015-09-11 14:41:01 +05:30
= icon('cube fw')
2015-04-26 12:48:37 +05:30
%span
Projects
2014-09-02 18:07:02 +05:30
= nav_link(controller: :users) do
2015-12-23 02:04:40 +05:30
= link_to admin_users_path, title: 'Users' do
2015-09-11 14:41:01 +05:30
= icon('user fw')
2015-04-26 12:48:37 +05:30
%span
Users
2014-09-02 18:07:02 +05:30
= nav_link(controller: :groups) do
2015-12-23 02:04:40 +05:30
= link_to admin_groups_path, title: 'Groups' do
2015-09-11 14:41:01 +05:30
= icon('group fw')
2015-04-26 12:48:37 +05:30
%span
Groups
= nav_link(controller: :deploy_keys) do
2015-12-23 02:04:40 +05:30
= link_to admin_deploy_keys_path, title: 'Deploy Keys' do
2015-09-11 14:41:01 +05:30
= icon('key fw')
2015-04-26 12:48:37 +05:30
%span
Deploy Keys
2015-12-23 02:04:40 +05:30
= nav_link path: ['runners#index', 'runners#show'] do
= link_to admin_runners_path do
= icon('cog fw')
%span
Runners
%span.count= number_with_delimiter(Ci::Runner.count(:all))
2015-12-23 02:04:40 +05:30
= nav_link path: 'builds#index' do
= link_to admin_builds_path do
= icon('link fw')
2015-09-25 12:07:36 +05:30
%span
2015-12-23 02:04:40 +05:30
Builds
%span.count= number_with_delimiter(Ci::Build.count(:all))
2014-09-02 18:07:02 +05:30
= nav_link(controller: :logs) do
2015-12-23 02:04:40 +05:30
= link_to admin_logs_path, title: 'Logs' do
2015-09-11 14:41:01 +05:30
= icon('file-text fw')
2015-04-26 12:48:37 +05:30
%span
Logs
2014-09-02 18:07:02 +05:30
= nav_link(controller: :broadcast_messages) do
2015-12-23 02:04:40 +05:30
= link_to admin_broadcast_messages_path, title: 'Messages' do
2015-09-11 14:41:01 +05:30
= icon('bullhorn fw')
2015-04-26 12:48:37 +05:30
%span
Messages
2014-09-02 18:07:02 +05:30
= nav_link(controller: :hooks) do
2015-12-23 02:04:40 +05:30
= link_to admin_hooks_path, title: 'Hooks' do
2015-09-11 14:41:01 +05:30
= icon('external-link fw')
2015-04-26 12:48:37 +05:30
%span
Hooks
2014-09-02 18:07:02 +05:30
= nav_link(controller: :background_jobs) do
2015-12-23 02:04:40 +05:30
= link_to admin_background_jobs_path, title: 'Background Jobs' do
2015-09-11 14:41:01 +05:30
= icon('cog fw')
2015-04-26 12:48:37 +05:30
%span
Background Jobs
= nav_link(controller: :applications) do
2015-12-23 02:04:40 +05:30
= link_to admin_applications_path, title: 'Applications' do
2015-09-11 14:41:01 +05:30
= icon('cloud fw')
2015-04-26 12:48:37 +05:30
%span
Applications
= nav_link(controller: :services) do
2015-12-23 02:04:40 +05:30
= link_to admin_application_settings_services_path, title: 'Service Templates' do
2015-09-11 14:41:01 +05:30
= icon('copy fw')
2015-04-26 12:48:37 +05:30
%span
Service Templates
2015-09-25 12:07:36 +05:30
= nav_link(controller: :labels) do
2015-12-23 02:04:40 +05:30
= link_to admin_labels_path, title: 'Labels' do
2015-09-25 12:07:36 +05:30
= icon('tags fw')
%span
Labels
2015-09-11 14:41:01 +05:30
= nav_link(controller: :abuse_reports) do
2015-12-23 02:04:40 +05:30
= link_to admin_abuse_reports_path, title: "Abuse Reports" do
2015-09-11 14:41:01 +05:30
= icon('exclamation-circle fw')
%span
Abuse Reports
%span.count= number_with_delimiter(AbuseReport.count(:all))
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
= nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do
2015-12-23 02:04:40 +05:30
= link_to admin_application_settings_path, title: 'Settings' do
2015-09-11 14:41:01 +05:30
= icon('cogs fw')
2015-04-26 12:48:37 +05:30
%span
Settings