summaryrefslogtreecommitdiff
path: root/app/views/projects/deployments
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-16 18:39:58 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-18 14:44:21 +0200
commit7d0fe1f04ed285e7e5cf825a305114b3e981c2f8 (patch)
tree7ad00009bb144bbe76534310175734e6885be619 /app/views/projects/deployments
parent4e898b9b5e1a782d226212ba6227a8ddcb5177ae (diff)
downloadgitlab-ce-7d0fe1f04ed285e7e5cf825a305114b3e981c2f8.tar.gz
Add implementation of manual actions
Diffstat (limited to 'app/views/projects/deployments')
-rw-r--r--app/views/projects/deployments/_deployment.html.haml2
-rw-r--r--app/views/projects/deployments/_playable.html.haml12
2 files changed, 14 insertions, 0 deletions
diff --git a/app/views/projects/deployments/_deployment.html.haml b/app/views/projects/deployments/_deployment.html.haml
index d08dd92f1f6..e430d195ea6 100644
--- a/app/views/projects/deployments/_deployment.html.haml
+++ b/app/views/projects/deployments/_deployment.html.haml
@@ -21,3 +21,5 @@
Retry
- else
Rollback
+
+ = render 'playable', deployment: deployment
diff --git a/app/views/projects/deployments/_playable.html.haml b/app/views/projects/deployments/_playable.html.haml
new file mode 100644
index 00000000000..02e4fb7974e
--- /dev/null
+++ b/app/views/projects/deployments/_playable.html.haml
@@ -0,0 +1,12 @@
+- playable = deployment.playable_actions
+- if playable.any?
+ .btn-group.inline
+ .btn-group
+ %a.dropdown-toggle.btn.btn-default{type: 'button', 'data-toggle' => 'dropdown'}
+ = icon("play")
+ %b.caret
+ %ul.dropdown-menu.dropdown-menu-align-right
+ %li
+ = link_to play_namespace_project_build_path(@project.namespace, @project, build), rel: 'nofollow' do
+ = icon("play")
+ %span= playable.name.titleize