2021-03-11 19:13:27 +05:30
%aside.nav-sidebar.qa-admin-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?), 'aria-label': _('Admin navigation') }
2018-03-17 18:26:18 +05:30
.nav-sidebar-inner-scroll
.context-header
2021-11-18 22:05:49 +05:30
= link_to admin_root_path, title: _('Admin Overview'), class: 'has-tooltip', data: { container: 'body', placement: 'right' } do
2021-09-30 23:02:18 +05:30
%span{ class: ['avatar-container', 'settings-avatar', 'rect-avatar', 's32'] }
= sprite_icon('admin', size: 18)
2021-06-08 01:23:25 +05:30
%span.sidebar-context-title
2018-11-18 11:00:15 +05:30
= _('Admin Area')
2019-12-21 20:55:43 +05:30
%ul.sidebar-top-level-items{ data: { qa_selector: 'admin_sidebar_overview_submenu_content' } }
2022-08-27 11:52:29 +05:30
= nav_link(controller: %w[dashboard admin admin/projects users groups admin/topics jobs runners gitaly_servers cohorts], html_options: {class: 'home'}) do
2021-09-04 01:27:46 +05:30
= link_to admin_root_path, class: 'has-sub-items' do
2018-03-17 18:26:18 +05:30
.nav-icon-container
= sprite_icon('overview')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Overview')
2018-03-17 18:26:18 +05:30
%ul.sidebar-sub-level-items
2022-08-27 11:52:29 +05:30
= nav_link(controller: %w[dashboard admin admin/projects users groups jobs runners gitaly_servers cohorts], html_options: { class: "fly-out-top-item" } ) do
2018-03-17 18:26:18 +05:30
= link_to admin_root_path do
%strong.fly-out-top-item-name
2018-11-18 11:00:15 +05:30
= _('Overview')
2018-03-17 18:26:18 +05:30
%li.divider.fly-out-top-item
= nav_link(controller: :dashboard, html_options: {class: 'home'}) do
2018-11-18 11:00:15 +05:30
= link_to admin_root_path, title: _('Overview') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Dashboard')
2018-12-05 23:21:45 +05:30
= nav_link(controller: [:admin, 'admin/projects']) do
2018-11-18 11:00:15 +05:30
= link_to admin_projects_path, title: _('Projects') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Projects')
2022-08-27 11:52:29 +05:30
= nav_link(controller: %w[users cohorts]) do
2020-04-22 19:07:51 +05:30
= link_to admin_users_path, title: _('Users'), data: { qa_selector: 'users_overview_link' } do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Users')
2018-03-17 18:26:18 +05:30
= nav_link(controller: :groups) do
2020-04-22 19:07:51 +05:30
= link_to admin_groups_path, title: _('Groups'), data: { qa_selector: 'groups_overview_link' } do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Groups')
2021-11-18 22:05:49 +05:30
= nav_link(controller: [:admin, 'admin/topics']) do
= link_to admin_topics_path, title: _('Topics'), data: { qa_selector: 'topics_overview_link' } do
%span
= _('Topics')
2018-03-17 18:26:18 +05:30
= nav_link path: 'jobs#index' do
2018-11-18 11:00:15 +05:30
= link_to admin_jobs_path, title: _('Jobs') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Jobs')
2018-03-17 18:26:18 +05:30
= nav_link path: ['runners#index', 'runners#show'] do
2018-11-18 11:00:15 +05:30
= link_to admin_runners_path, title: _('Runners') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Runners')
= nav_link(controller: :gitaly_servers) do
= link_to admin_gitaly_servers_path, title: 'Gitaly Servers' do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Gitaly Servers')
2018-03-17 18:26:18 +05:30
2020-11-24 15:15:51 +05:30
= nav_link(controller: admin_analytics_nav_links) do
2022-06-21 17:19:12 +05:30
= link_to admin_dev_ops_reports_path, data: { qa_selector: 'admin_analytics_link' }, class: 'has-sub-items' do
2020-11-24 15:15:51 +05:30
.nav-icon-container
= sprite_icon('chart')
%span.nav-item-name
= _('Analytics')
%ul.sidebar-sub-level-items{ data: { qa_selector: 'admin_sidebar_analytics_submenu_content' } }
= nav_link(controller: admin_analytics_nav_links, html_options: { class: "fly-out-top-item" }) do
2022-06-21 17:19:12 +05:30
= link_to admin_dev_ops_reports_path do
2020-11-24 15:15:51 +05:30
%strong.fly-out-top-item-name
= _('Analytics')
%li.divider.fly-out-top-item
= nav_link(controller: :dev_ops_report) do
2022-06-21 17:19:12 +05:30
= link_to admin_dev_ops_reports_path, title: _('DevOps Reports') do
2020-11-24 15:15:51 +05:30
%span
2021-12-11 22:18:48 +05:30
= _('DevOps Reports')
2021-04-17 20:07:23 +05:30
= nav_link(controller: :usage_trends) do
= link_to admin_usage_trends_path, title: _('Usage Trends') do
%span
= _('Usage Trends')
2020-11-24 15:15:51 +05:30
2019-09-04 21:01:54 +05:30
= nav_link(controller: admin_monitoring_nav_links) do
2021-09-04 01:27:46 +05:30
= link_to admin_system_info_path, data: { qa_selector: 'admin_monitoring_link' }, class: 'has-sub-items' do
2018-03-17 18:26:18 +05:30
.nav-icon-container
= sprite_icon('monitor')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Monitoring')
2018-03-17 18:26:18 +05:30
2019-12-21 20:55:43 +05:30
%ul.sidebar-sub-level-items{ data: { qa_selector: 'admin_sidebar_monitoring_submenu_content' } }
2021-09-04 01:27:46 +05:30
= nav_link(controller: admin_monitoring_nav_links, html_options: { class: "fly-out-top-item" } ) do
2018-03-17 18:26:18 +05:30
= link_to admin_system_info_path do
%strong.fly-out-top-item-name
2018-11-18 11:00:15 +05:30
= _('Monitoring')
2018-03-17 18:26:18 +05:30
%li.divider.fly-out-top-item
= nav_link(controller: :system_info) do
2018-11-18 11:00:15 +05:30
= link_to admin_system_info_path, title: _('System Info') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('System Info')
2021-09-04 01:27:46 +05:30
= nav_link(controller: :background_migrations) do
= link_to admin_background_migrations_path, title: _('Background Migrations') do
%span
= _('Background Migrations')
2018-03-17 18:26:18 +05:30
= nav_link(controller: :background_jobs) do
2018-11-18 11:00:15 +05:30
= link_to admin_background_jobs_path, title: _('Background Jobs') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Background Jobs')
2018-03-17 18:26:18 +05:30
= nav_link(controller: :health_check) do
2018-11-18 11:00:15 +05:30
= link_to admin_health_check_path, title: _('Health Check') do
2018-03-17 18:26:18 +05:30
%span
2018-11-18 11:00:15 +05:30
= _('Health Check')
2019-09-30 21:07:59 +05:30
- if Gitlab::CurrentSettings.current_application_settings.grafana_enabled?
= nav_link do
2020-03-07 23:17:34 +05:30
= link_to Gitlab::CurrentSettings.current_application_settings.grafana_url, target: '_blank', title: _('Metrics Dashboard'), rel: 'noopener noreferrer' do
2019-09-30 21:07:59 +05:30
%span
= _('Metrics Dashboard')
2019-09-04 21:01:54 +05:30
= render_if_exists 'layouts/nav/ee/admin/new_monitoring_sidebar'
2018-03-17 18:26:18 +05:30
= nav_link(controller: :broadcast_messages) do
= link_to admin_broadcast_messages_path do
.nav-icon-container
= sprite_icon('messages')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Messages')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('Messages')
2018-03-17 18:26:18 +05:30
= nav_link(controller: [:hooks, :hook_logs]) do
= link_to admin_hooks_path do
.nav-icon-container
= sprite_icon('hook')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('System Hooks')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('System Hooks')
2018-03-17 18:26:18 +05:30
= nav_link(controller: :applications) do
= link_to admin_applications_path do
.nav-icon-container
= sprite_icon('applications')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Applications')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('Applications')
2018-03-17 18:26:18 +05:30
= nav_link(controller: :abuse_reports) do
= link_to admin_abuse_reports_path do
.nav-icon-container
= sprite_icon('slight-frown')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Abuse Reports')
2022-04-04 11:22:00 +05:30
= gl_badge_tag number_with_delimiter(AbuseReport.count(:all)), variant: :info, size: :sm
2018-03-17 18:26:18 +05:30
%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_abuse_reports_path do
%strong.fly-out-top-item-name
2018-11-18 11:00:15 +05:30
= _('Abuse Reports')
2022-04-04 11:22:00 +05:30
= gl_badge_tag number_with_delimiter(AbuseReport.count(:all)), variant: :info, size: :sm
2018-03-17 18:26:18 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'layouts/nav/sidebar/licenses_link'
2019-07-31 22:56:46 +05:30
- if instance_clusters_enabled?
= nav_link(controller: :clusters) do
= link_to admin_clusters_path do
.nav-icon-container
= sprite_icon('cloud-gear')
%span.nav-item-name
= _('Kubernetes')
%ul.sidebar-sub-level-items.is-fly-out-only
= nav_link(controller: :clusters, html_options: { class: "fly-out-top-item" } ) do
= link_to admin_clusters_path do
%strong.fly-out-top-item-name
= _('Kubernetes')
2018-03-17 18:26:18 +05:30
- if akismet_enabled?
= nav_link(controller: :spam_logs) do
= link_to admin_spam_logs_path do
.nav-icon-container
= sprite_icon('spam')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Spam Logs')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('Spam Logs')
2018-03-17 18:26:18 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'layouts/nav/sidebar/push_rules_link'
= render_if_exists 'layouts/nav/ee/admin/geo_sidebar'
2018-03-17 18:26:18 +05:30
= nav_link(controller: :deploy_keys) do
= link_to admin_deploy_keys_path do
.nav-icon-container
= sprite_icon('key')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Deploy Keys')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('Deploy Keys')
2018-03-17 18:26:18 +05:30
2020-01-01 13:55:28 +05:30
= render_if_exists 'layouts/nav/sidebar/credentials_link'
2018-03-17 18:26:18 +05:30
= nav_link(controller: :labels) do
= link_to admin_labels_path do
.nav-icon-container
= sprite_icon('labels')
%span.nav-item-name
2018-11-18 11:00:15 +05:30
= _('Labels')
2018-03-17 18:26:18 +05:30
%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
2018-11-18 11:00:15 +05:30
= _('Labels')
2018-03-17 18:26:18 +05:30
2021-09-04 01:27:46 +05:30
= nav_link(controller: [:application_settings, :integrations, :appearances]) do
= link_to general_admin_application_settings_path, class: 'has-sub-items' do
2018-03-17 18:26:18 +05:30
.nav-icon-container
= sprite_icon('settings')
2018-12-05 23:21:45 +05:30
%span.nav-item-name.qa-admin-settings-item
2018-11-18 11:00:15 +05:30
= _('Settings')
2018-12-05 23:21:45 +05:30
2020-10-24 23:57:45 +05:30
%ul.sidebar-sub-level-items{ data: { qa_selector: 'admin_sidebar_settings_submenu_content' } }
2021-03-11 19:13:27 +05:30
-# This active_nav_link check is also used in `app/views/layouts/admin.html.haml`
2021-09-04 01:27:46 +05:30
= nav_link(controller: [:application_settings, :integrations, :appearances], html_options: { class: "fly-out-top-item" } ) do
2020-03-13 15:44:24 +05:30
= link_to general_admin_application_settings_path do
2018-03-17 18:26:18 +05:30
%strong.fly-out-top-item-name
2018-11-18 11:00:15 +05:30
= _('Settings')
2018-12-05 23:21:45 +05:30
%li.divider.fly-out-top-item
2020-03-13 15:44:24 +05:30
= nav_link(path: 'application_settings#general') do
2019-12-04 20:38:33 +05:30
= link_to general_admin_application_settings_path, title: _('General'), class: 'qa-admin-settings-general-item' do
2018-12-05 23:21:45 +05:30
%span
= _('General')
2021-03-11 19:13:27 +05:30
= render_if_exists 'layouts/nav/sidebar/advanced_search', class: 'qa-admin-settings-advanced-search'
2021-01-03 14:25:43 +05:30
- if instance_level_integrations?
= nav_link(path: ['application_settings#integrations', 'integrations#edit']) do
= link_to integrations_admin_application_settings_path, title: _('Integrations'), data: { qa_selector: 'integration_settings_link' } do
%span
= _('Integrations')
2018-12-05 23:21:45 +05:30
= nav_link(path: 'application_settings#repository') do
= link_to repository_admin_application_settings_path, title: _('Repository'), class: 'qa-admin-settings-repository-item' do
%span
= _('Repository')
2020-04-22 19:07:51 +05:30
- if Gitlab.ee? && License.feature_available?(:custom_file_templates)
2018-12-05 23:21:45 +05:30
= nav_link(path: 'application_settings#templates') do
2019-07-07 11:18:12 +05:30
= link_to templates_admin_application_settings_path, title: _('Templates'), class: 'qa-admin-settings-template-item' do
2018-12-05 23:21:45 +05:30
%span
= _('Templates')
= nav_link(path: 'application_settings#ci_cd') do
= link_to ci_cd_admin_application_settings_path, title: _('CI/CD') do
%span
= _('CI/CD')
= nav_link(path: 'application_settings#reporting') do
= link_to reporting_admin_application_settings_path, title: _('Reporting') do
%span
= _('Reporting')
= nav_link(path: 'application_settings#metrics_and_profiling') do
2019-07-31 22:56:46 +05:30
= link_to metrics_and_profiling_admin_application_settings_path, title: _('Metrics and profiling'), class: 'qa-admin-settings-metrics-and-profiling-item' do
2018-12-05 23:21:45 +05:30
%span
= _('Metrics and profiling')
2022-06-21 17:19:12 +05:30
= nav_link(path: ['application_settings#service_usage_data']) do
= link_to service_usage_data_admin_application_settings_path, title: _('Service usage data') do
%span
= _('Service usage data')
2018-12-05 23:21:45 +05:30
= nav_link(path: 'application_settings#network') do
2019-12-04 20:38:33 +05:30
= link_to network_admin_application_settings_path, title: _('Network'), data: { qa_selector: 'admin_settings_network_item' } do
2018-12-05 23:21:45 +05:30
%span
= _('Network')
2021-09-04 01:27:46 +05:30
= nav_link(controller: :appearances ) do
= link_to admin_application_settings_appearances_path do
%span
= _('Appearance')
2018-12-05 23:21:45 +05:30
= nav_link(path: 'application_settings#preferences') do
2019-12-04 20:38:33 +05:30
= link_to preferences_admin_application_settings_path, title: _('Preferences'), data: { qa_selector: 'admin_settings_preferences_link' } do
2018-12-05 23:21:45 +05:30
%span
= _('Preferences')
2018-03-17 18:26:18 +05:30
= render 'shared/sidebar_toggle_button'