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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-19 22:12:56 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-02-01 01:55:28 +0300
commit06d96a9a624d31294bdf16a4662aaa7121274061 (patch)
treedc6c17d67fa7894b632ac51d48f94dbaf6732e12 /app/views/projects/pages
parent8a861c87bf8ba71d5c1a479c8118d9ed6aaf8e88 (diff)
Introduce pages_deployed? to Project model
Diffstat (limited to 'app/views/projects/pages')
-rw-r--r--app/views/projects/pages/_access.html.haml2
-rw-r--r--app/views/projects/pages/_destroy.haml2
-rw-r--r--app/views/projects/pages/_use.html.haml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/pages/_access.html.haml b/app/views/projects/pages/_access.html.haml
index 9740877b214..82e20eeebb3 100644
--- a/app/views/projects/pages/_access.html.haml
+++ b/app/views/projects/pages/_access.html.haml
@@ -1,4 +1,4 @@
-- if @project.pages_url
+- if @project.pages_deployed?
.panel.panel-default
.panel-heading
Access pages
diff --git a/app/views/projects/pages/_destroy.haml b/app/views/projects/pages/_destroy.haml
index 896a86712a1..6a7b6baf767 100644
--- a/app/views/projects/pages/_destroy.haml
+++ b/app/views/projects/pages/_destroy.haml
@@ -1,4 +1,4 @@
-- if can?(current_user, :remove_pages, @project) && @project.pages_url
+- if can?(current_user, :remove_pages, @project) && @project.pages_deployed?
.panel.panel-default.panel.panel-danger
.panel-heading Remove pages
.errors-holder
diff --git a/app/views/projects/pages/_use.html.haml b/app/views/projects/pages/_use.html.haml
index ee38f45d44d..9db46f0b1fc 100644
--- a/app/views/projects/pages/_use.html.haml
+++ b/app/views/projects/pages/_use.html.haml
@@ -1,4 +1,4 @@
-- unless @project.pages_url
+- unless @project.pages_deployed?
.panel.panel-info
.panel-heading
Configure pages