Commit ced3db8a authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'dz-admin-tabs-dropdown' into 'master'

Move part of admin area navigation from tabs into settings dropdown

Partly fix https://gitlab.com/gitlab-org/gitlab-ce/issues/18799 

See merge request !4796
parents 6317e491 3f12e8d1
- page_title "Appearance" - page_title "Appearance"
%h3.page-title %h3.page-title
Appearance settings Appearance settings
%p.light %p.light
You can modify the look and feel of GitLab here You can modify the look and feel of GitLab here
%hr
= render 'form' = render 'form'
- page_title "Settings" - page_title "Settings"
%h3.page-title Settings %h3.page-title Settings
%hr %hr
= render 'form' = render 'form'
%ul.nav-links.scrolling-tabs %div{ class: nav_control_class }
.fade-left = render 'layouts/nav/admin_settings'
= nav_link(controller: %w(dashboard admin projects users groups builds runners), html_options: {class: 'home'}) do
= link_to admin_root_path, title: 'Overview', class: 'shortcuts-tree' do
%span
Overview
= nav_link(controller: %w(background_jobs logs health_check)) do
= link_to admin_background_jobs_path, title: 'Monitoring' do
%span
Monitoring
= nav_link(controller: :deploy_keys) do
= link_to admin_deploy_keys_path, title: 'Deploy Keys' do
%span
Deploy Keys
= nav_link(controller: :broadcast_messages) do
= link_to admin_broadcast_messages_path, title: 'Messages' do
%span
Messages
= nav_link(controller: :hooks) do
= link_to admin_hooks_path, title: 'Hooks' do
%span
Hooks
= nav_link(controller: :appearances) do %ul.nav-links.scrolling-tabs
= link_to admin_appearances_path, title: 'Appearances' do .fade-left
%span = nav_link(controller: %w(dashboard admin projects users groups builds runners), html_options: {class: 'home'}) do
Appearance = link_to admin_root_path, title: 'Overview', class: 'shortcuts-tree' do
%span
= nav_link(controller: :applications) do Overview
= link_to admin_applications_path, title: 'Applications' do = nav_link(controller: %w(background_jobs logs health_check)) do
%span = link_to admin_background_jobs_path, title: 'Monitoring' do
Applications %span
Monitoring
= nav_link(controller: :services) do = nav_link(controller: :broadcast_messages) do
= link_to admin_application_settings_services_path, title: 'Service Templates' do = link_to admin_broadcast_messages_path, title: 'Messages' do
%span %span
Service Templates Messages
= nav_link(controller: :hooks) do
= nav_link(controller: :labels) do = link_to admin_hooks_path, title: 'Hooks' do
= link_to admin_labels_path, title: 'Labels' do %span
%span System Hooks
Labels
= nav_link(controller: :abuse_reports) do = nav_link(controller: :applications) do
= link_to admin_abuse_reports_path, title: "Abuse Reports" do = link_to admin_applications_path, title: 'Applications' do
%span %span
Abuse Reports Applications
%span.badge.count= number_with_delimiter(AbuseReport.count(:all))
- if askimet_enabled? = nav_link(controller: :abuse_reports) do
= nav_link(controller: :spam_logs) do = link_to admin_abuse_reports_path, title: "Abuse Reports" do
= link_to admin_spam_logs_path, title: "Spam Logs" do
%span %span
Spam Logs Abuse Reports
%span.badge.count= number_with_delimiter(AbuseReport.count(:all))
= nav_link(controller: :application_settings, html_options: { class: 'separate-item'}) do - if askimet_enabled?
= link_to admin_application_settings_path, title: 'Settings' do = nav_link(controller: :spam_logs) do
%span = link_to admin_spam_logs_path, title: "Spam Logs" do
Settings %span
.fade-right Spam Logs
.fade-right
.controls
.dropdown.admin-settings-dropdown
%a.dropdown-new.btn.btn-default{href: '#', 'data-toggle' => 'dropdown'}
= icon('cog')
= icon('caret-down')
%ul.dropdown-menu.dropdown-menu-align-right
= nav_link(controller: :deploy_keys) do
= link_to admin_deploy_keys_path, title: 'Deploy Keys' do
%span
Deploy Keys
= nav_link(controller: :services) do
= link_to admin_application_settings_services_path, title: 'Service Templates' do
%span
Service Templates
= nav_link(controller: :labels) do
= link_to admin_labels_path, title: 'Labels' do
%span
Labels
= nav_link(controller: :appearances) do
= link_to admin_appearances_path, title: 'Appearances' do
%span
Appearance
%li.divider
= nav_link(controller: :application_settings) do
= link_to admin_application_settings_path, title: 'Settings' do
%span
Settings
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment