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
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-29 13:15:19 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-31 10:27:42 +0300
commit04cd47dd5a08ca5cc84c44346b2893111da9594c (patch)
tree08876d2156c4538b9a028b0b0d02a45c1783f185 /app/views/projects/settings/_head.html.haml
parent9e7e0496ff639d1eec65dcbf1b51edb2262456e2 (diff)
Don't show references to Pages when not available
In this instance its subgroups, and given we can't deploy it, we shouldn't allow it to be shown. Fixes gitlab-org/gitlab-ce#34864
Diffstat (limited to 'app/views/projects/settings/_head.html.haml')
-rw-r--r--app/views/projects/settings/_head.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/settings/_head.html.haml b/app/views/projects/settings/_head.html.haml
index 15ba09b10ba..7d24c6a9122 100644
--- a/app/views/projects/settings/_head.html.haml
+++ b/app/views/projects/settings/_head.html.haml
@@ -23,7 +23,7 @@
= link_to project_settings_ci_cd_path(@project), title: 'Pipelines' do
%span
Pipelines
- - if Gitlab.config.pages.enabled
+ - if @project.pages_available?
= nav_link(controller: :pages) do
= link_to project_pages_path(@project), title: 'Pages' do
%span