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:
parent
0168a24064
commit
e6a7eb43b2
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
- if can?(current_user, :remove_pages, @project)
|
||||
- if @project.pages_deployed?
|
||||
- if @project.pages_deployed?
|
||||
- if can?(current_user, :remove_pages, @project)
|
||||
.panel.panel-default.panel.panel-danger
|
||||
.panel-heading Remove pages
|
||||
.errors-holder
|
||||
|
@ -8,5 +8,5 @@
|
|||
Removing the pages will prevent from exposing them to outside world.
|
||||
.form-actions
|
||||
= link_to 'Remove pages', namespace_project_pages_path(@project.namespace, @project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
|
||||
- else
|
||||
.nothing-here-block Only the project owner can remove pages
|
||||
- else
|
||||
.nothing-here-block Only the project owner can remove pages
|
||||
|
|
Loading…
Reference in a new issue