Commit 667b71a4 authored by Filipa Lacerda's avatar Filipa Lacerda

Close button

parent 79e9b890
- if can?(current_user, :create_deployment, @project) - if can?(current_user, :create_deployment, @project)
.inline{ "v-if" => "model.last_deployment.manual_actions && model.last_deployment.manual_actions.present"} .inline{ "v-if" => "model.last_deployment && model.last_deployment.manual_actions && model.last_deployment.manual_actions.present"}
.dropdown .dropdown
%a.dropdown-new.btn.btn-default{type: "button", "data-toggle" => "dropdown"} %a.dropdown-new.btn.btn-default{type: "button", "data-toggle" => "dropdown"}
= custom_icon('icon_play') = custom_icon('icon_play')
......
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
.pull-right{ "v-if" => "!isFolder"} .pull-right{ "v-if" => "!isFolder"}
=render "projects/environments/components/external_url" =render "projects/environments/components/external_url"
=render "projects/environments/components/actions" =render "projects/environments/components/actions"
=render "projects/environments/components/stop"
=render "projects/environments/components/rollback"
%tr{"v-if" => "open && isFolder", %tr{"v-if" => "open && isFolder",
"is" => "environment-item", "is" => "environment-item",
......
- if can?(current_user, :create_deployment, @project) - if can?(current_user, :create_deployment, @project)
.inline{ "v-if" => "environment.stop_action"} .inline{ "v-if" => "model.stop_action" }
-# TODO: Fix this link %a.btn.stop-env-link{":href" => "'#{namespace_project_environments_path(@project.namespace, @project)}/' + model.id",
-# link_to stop_namespace_project_environment_path(@project.namespace, @project, environment)
%a{":href" => "",
"method" => ":post", "method" => ":post",
"rel" => "nofollow", "confirm" => "Are you sure you want to stop this environment?"} "rel" => "nofollow", "confirm" => "Are you sure you want to stop this environment?"}
= icon('stop', class: 'stop-env-icon') = icon("stop", class: "stop-env-icon")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment