diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-19 20:12:56 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:55:28 +0000 |
commit | 06d96a9a624d31294bdf16a4662aaa7121274061 (patch) | |
tree | dc6c17d67fa7894b632ac51d48f94dbaf6732e12 /app/views/projects/pages | |
parent | 8a861c87bf8ba71d5c1a479c8118d9ed6aaf8e88 (diff) | |
download | gitlab-ce-06d96a9a624d31294bdf16a4662aaa7121274061.tar.gz |
Introduce pages_deployed? to Project model
Diffstat (limited to 'app/views/projects/pages')
-rw-r--r-- | app/views/projects/pages/_access.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/pages/_destroy.haml | 2 | ||||
-rw-r--r-- | app/views/projects/pages/_use.html.haml | 2 |
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 |