summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-21 11:52:51 +0100
committerPhil Hughes <me@iamphill.com>2016-06-21 11:52:51 +0100
commitc207b9e0512f630b646d9e62f75ca13a188cf83b (patch)
tree9ef4bfb59e23cc77b04d5bcf493810fbfd40d87a /app/views/projects
parent85a5e42576fdbdef804dcab9b4ed2ad1d2bda23e (diff)
downloadgitlab-ce-c207b9e0512f630b646d9e62f75ca13a188cf83b.tar.gz
Tests updateblank-state
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/environments/index.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/environments/index.html.haml b/app/views/projects/environments/index.html.haml
index 89b0e1b39e0..a03f117291f 100644
--- a/app/views/projects/environments/index.html.haml
+++ b/app/views/projects/environments/index.html.haml
@@ -18,8 +18,9 @@
%br
= succeed "." do
= link_to "Read more about environments", help_page_path("ci", "environments")
- = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
- New environment
+ - if can?(current_user, :create_environment, @project)
+ = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
+ New environment
- else
.table-holder
%table.table.environments