Commit 9d8de1c9 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds actions

parent 6b71ca0c
- if can?(current_user, :create_deployment, @project)
.inline{ "v-if" => "model.last_deployment.manual_actions && model.last_deployment.manual_actions.present"}
.dropdown
%a.dropdown-new.btn.btn-default{type: "button", "data-toggle" => "dropdown"}
= custom_icon('icon_play')
= icon('caret-down')
%ul.dropdown-menu.dropdown-menu-align-right
%li{ "v-for" => "action in model.last_deployment.manual_actions" }
-# transform this = link_to [:play, @project.namespace.becomes(Namespace), @project, action] into href
%a{data: {"method" => ":post", "rel" => "nofollow"}}
= custom_icon('icon_play')
%span
{{action.name}}
\ No newline at end of file
......@@ -2,4 +2,4 @@
%a.btn.external-url{ "v-if" => "!isFolder && model.external_url",
":target" => "_blank",
":href" => "model.external_url"}
= icon("external-link")
\ No newline at end of file
= icon("external-link")
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