diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-04 21:33:50 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-06 13:16:14 +0200 |
commit | ed975fdcd4bb2ecb47753e2e1c017175c211adbe (patch) | |
tree | a84c254c215414ece032252af5b9e2e8bba2e4d4 /app | |
parent | bc49974d94c8ddec59fbc3ebaf16a0e00269e647 (diff) | |
download | gitlab-ce-ed975fdcd4bb2ecb47753e2e1c017175c211adbe.tar.gz |
Replaces destroy button with close one
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/environments/show.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/environments/show.html.haml b/app/views/projects/environments/show.html.haml index 6412c809d52..5ca35bb92b1 100644 --- a/app/views/projects/environments/show.html.haml +++ b/app/views/projects/environments/show.html.haml @@ -10,7 +10,8 @@ .nav-controls - if can?(current_user, :update_environment, @environment) = link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn' - = link_to 'Destroy', namespace_project_environment_path(@project.namespace, @project, @environment), data: { confirm: 'Are you sure you want to delete this environment?' }, class: 'btn btn-danger', method: :delete + / TODO: Confirm if the method is :delete + = link_to 'Close', namespace_project_environment_path(@project.namespace, @project, @environment), data: { confirm: 'Are you sure you want to delete this environment?' }, class: 'btn btn-danger', method: :delete - if @deployments.blank? .blank-state.blank-state-no-icon |