2017-08-07 15:45:44 -04:00
|
|
|
.nav-sidebar{ class: ("sidebar-icons-only" if collapsed_sidebar?) }
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-sidebar-inner-scroll
|
|
|
|
.context-header
|
|
|
|
= link_to admin_root_path, title: 'Admin Overview' do
|
|
|
|
.avatar-container.s40.settings-avatar
|
|
|
|
= icon('wrench')
|
2017-08-23 15:34:32 -04:00
|
|
|
.sidebar-context-title Admin Area
|
2017-08-10 04:10:25 -04:00
|
|
|
%ul.sidebar-top-level-items
|
|
|
|
= nav_link(controller: %w(dashboard admin projects users groups jobs runners cohorts), html_options: {class: 'home'}) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_root_path, title: _('Overview'), css: 'shortcuts-tree' do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('overview')
|
|
|
|
%span.nav-item-name
|
|
|
|
Overview
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
%ul.sidebar-sub-level-items
|
2017-09-01 03:41:31 -04:00
|
|
|
= nav_link(controller: %w(dashboard admin projects users groups jobs runners cohorts), html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_root_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Overview') }
|
|
|
|
%li.divider.fly-out-top-item
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :dashboard, html_options: {class: 'home'}) do
|
|
|
|
= link_to admin_root_path, title: 'Overview' do
|
|
|
|
%span
|
|
|
|
Dashboard
|
|
|
|
= nav_link(controller: [:admin, :projects]) do
|
|
|
|
= link_to admin_projects_path, title: 'Projects' do
|
|
|
|
%span
|
|
|
|
Projects
|
|
|
|
= nav_link(controller: :users) do
|
|
|
|
= link_to admin_users_path, title: 'Users' do
|
|
|
|
%span
|
|
|
|
Users
|
|
|
|
= nav_link(controller: :groups) do
|
|
|
|
= link_to admin_groups_path, title: 'Groups' do
|
|
|
|
%span
|
|
|
|
Groups
|
|
|
|
= nav_link path: 'jobs#index' do
|
|
|
|
= link_to admin_jobs_path, title: 'Jobs' do
|
|
|
|
%span
|
|
|
|
Jobs
|
|
|
|
= nav_link path: ['runners#index', 'runners#show'] do
|
|
|
|
= link_to admin_runners_path, title: 'Runners' do
|
|
|
|
%span
|
|
|
|
Runners
|
|
|
|
= nav_link path: 'cohorts#index' do
|
|
|
|
= link_to admin_cohorts_path, title: 'Cohorts' do
|
|
|
|
%span
|
|
|
|
Cohorts
|
2017-08-18 17:09:13 -04:00
|
|
|
= nav_link(controller: :conversational_development_index) do
|
|
|
|
= link_to admin_conversational_development_index_path, title: 'ConvDev Index' do
|
|
|
|
%span
|
|
|
|
ConvDev Index
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: %w(conversational_development_index system_info background_jobs logs health_check requests_profiles)) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_conversational_development_index_path, title: _('Monitoring') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('monitoring')
|
|
|
|
%span.nav-item-name
|
|
|
|
Monitoring
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
%ul.sidebar-sub-level-items
|
2017-09-01 03:41:31 -04:00
|
|
|
= nav_link(controller: %w(conversational_development_index system_info background_jobs logs health_check requests_profiles), html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_conversational_development_index_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Monitoring') }
|
|
|
|
%li.divider.fly-out-top-item
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :system_info) do
|
|
|
|
= link_to admin_system_info_path, title: 'System Info' do
|
|
|
|
%span
|
|
|
|
System Info
|
|
|
|
= nav_link(controller: :background_jobs) do
|
|
|
|
= link_to admin_background_jobs_path, title: 'Background Jobs' do
|
|
|
|
%span
|
|
|
|
Background Jobs
|
|
|
|
= nav_link(controller: :logs) do
|
|
|
|
= link_to admin_logs_path, title: 'Logs' do
|
|
|
|
%span
|
|
|
|
Logs
|
|
|
|
= nav_link(controller: :health_check) do
|
|
|
|
= link_to admin_health_check_path, title: 'Health Check' do
|
|
|
|
%span
|
|
|
|
Health Check
|
|
|
|
= nav_link(controller: :requests_profiles) do
|
|
|
|
= link_to admin_requests_profiles_path, title: 'Requests Profiles' do
|
|
|
|
%span
|
|
|
|
Requests Profiles
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :broadcast_messages) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_broadcast_messages_path, title: _('Messages') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('messages')
|
|
|
|
%span.nav-item-name
|
|
|
|
Messages
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :broadcast_messages, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_broadcast_messages_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Messages') }
|
2017-08-25 16:29:27 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: [:hooks, :hook_logs]) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_hooks_path, title: _('Hooks') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('system_hooks')
|
|
|
|
%span.nav-item-name
|
|
|
|
System Hooks
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: [:hooks, :hook_logs], html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_hooks_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('System Hooks') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :applications) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_applications_path, title: _('Applications') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('applications')
|
|
|
|
%span.nav-item-name
|
|
|
|
Applications
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :applications, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_applications_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Applications') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :abuse_reports) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_abuse_reports_path, title: _("Abuse Reports") do
|
2017-08-02 11:20:33 -04:00
|
|
|
.nav-icon-container
|
2017-08-10 04:10:25 -04:00
|
|
|
= custom_icon('abuse_reports')
|
2017-08-02 11:20:33 -04:00
|
|
|
%span.nav-item-name
|
2017-08-10 04:10:25 -04:00
|
|
|
Abuse Reports
|
|
|
|
%span.badge.count= number_with_delimiter(AbuseReport.count(:all))
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :abuse_reports, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_broadcast_messages_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Abuse Reports') }
|
|
|
|
%span.badge.count.merge_counter.js-merge-counter.fly-out-badge= number_with_delimiter(AbuseReport.count(:all))
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
- if akismet_enabled?
|
|
|
|
= nav_link(controller: :spam_logs) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_spam_logs_path, title: _("Spam Logs") do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('spam_logs')
|
|
|
|
%span.nav-item-name
|
|
|
|
Spam Logs
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :spam_logs, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_spam_logs_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Spam Logs') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :deploy_keys) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_deploy_keys_path, title: _('Deploy Keys') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('key')
|
|
|
|
%span.nav-item-name
|
|
|
|
Deploy Keys
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :deploy_keys, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_deploy_keys_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Deploy Keys') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :services) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_application_settings_services_path, title: _('Service Templates') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('service_templates')
|
|
|
|
%span.nav-item-name
|
|
|
|
Service Templates
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :services, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_application_settings_services_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Service Templates') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :labels) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_labels_path, title: _('Labels') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('labels')
|
|
|
|
%span.nav-item-name
|
|
|
|
Labels
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :labels, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_labels_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Labels') }
|
2017-06-28 04:30:57 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= nav_link(controller: :appearances) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_appearances_path, title: _('Appearances') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('appearance')
|
|
|
|
%span.nav-item-name
|
|
|
|
Appearance
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :appearances, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_appearances_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Appearance') }
|
2017-08-10 04:10:25 -04:00
|
|
|
|
|
|
|
= nav_link(controller: :application_settings) do
|
2017-08-30 04:39:33 -04:00
|
|
|
= sidebar_link admin_application_settings_path, title: _('Settings') do
|
2017-08-10 04:10:25 -04:00
|
|
|
.nav-icon-container
|
|
|
|
= custom_icon('settings')
|
|
|
|
%span.nav-item-name
|
|
|
|
Settings
|
2017-09-01 03:41:31 -04:00
|
|
|
%ul.sidebar-sub-level-items.is-fly-out-only
|
|
|
|
= nav_link(controller: :application_settings, html_options: { class: "fly-out-top-item" } ) do
|
|
|
|
= link_to admin_application_settings_path do
|
|
|
|
%strong.fly-out-top-item-name
|
|
|
|
#{ _('Settings') }
|
2017-08-02 21:19:43 -04:00
|
|
|
|
2017-08-10 04:10:25 -04:00
|
|
|
= render 'shared/sidebar_toggle_button'
|