If no pages were deployed, show nothing. Feedback:

https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/628#note_14000640
This commit is contained in:
Lin Jen-Shin 2016-08-18 23:36:31 +08:00 committed by James Edwards-Jones
parent 0168a24064
commit e6a7eb43b2

View file

@ -1,5 +1,5 @@
- if can?(current_user, :remove_pages, @project)
- if @project.pages_deployed?
- if can?(current_user, :remove_pages, @project)
.panel.panel-default.panel.panel-danger
.panel-heading Remove pages
.errors-holder