Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-01 19:14:38 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-01 19:14:38 +0300
commit129dce999fdf7394e14bfb4a8bf858ede65d5801 (patch)
tree07408b5c654331c084d587e4feca60ca41b14d8b /app
parent700e8d1917462f509e430f78f7effca8df56bdba (diff)
parentde6bab915cc080ecbbce5eb827017d46e1f95e1d (diff)
Merge branch 'contribute/fix-nav-links-archived-project' into 'master'
Disable inaccessible navigation links upon archiving a project Closes #58793 See merge request gitlab-org/gitlab-ce!26020
Diffstat (limited to 'app')
-rw-r--r--app/views/layouts/nav/sidebar/_project.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml
index 6b33189d1cf..3a0c2b9c284 100644
--- a/app/views/layouts/nav/sidebar/_project.html.haml
+++ b/app/views/layouts/nav/sidebar/_project.html.haml
@@ -357,12 +357,12 @@
= link_to project_settings_repository_path(@project), title: _('Repository') do
%span
= _('Repository')
- - if @project.feature_available?(:builds, current_user)
+ - if !@project.archived? && @project.feature_available?(:builds, current_user)
= nav_link(controller: :ci_cd) do
= link_to project_settings_ci_cd_path(@project), title: _('CI / CD') do
%span
= _('CI / CD')
- - if settings_operations_available?
+ - if !@project.archived? && settings_operations_available?
= nav_link(controller: [:operations]) do
= link_to project_settings_operations_path(@project), title: _('Operations') do
= _('Operations')