diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-21 11:52:51 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-21 11:52:51 +0100 |
commit | c207b9e0512f630b646d9e62f75ca13a188cf83b (patch) | |
tree | 9ef4bfb59e23cc77b04d5bcf493810fbfd40d87a /app/views/projects | |
parent | 85a5e42576fdbdef804dcab9b4ed2ad1d2bda23e (diff) | |
download | gitlab-ce-c207b9e0512f630b646d9e62f75ca13a188cf83b.tar.gz |
Tests updateblank-state
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/environments/index.html.haml | 5 |
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 |