summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-23 16:46:36 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-24 13:23:20 +0300
commit21fc25fd8efc6fc1196fd26d59f5b5e776240e83 (patch)
tree11775dbd120dacc706edb7235e50095af693fbb2 /app/views
parent3825fac65ba2e36620f7d50a8e52fc242ac0d710 (diff)
downloadgitlab-ci-21fc25fd8efc6fc1196fd26d59f5b5e776240e83.tar.gz
Ability to cancel all builds in the commit at once
Diffstat (limited to 'app/views')
-rw-r--r--app/views/commits/show.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml
index 9ca6222..76b491f 100644
--- a/app/views/commits/show.html.haml
+++ b/app/views/commits/show.html.haml
@@ -33,6 +33,12 @@
%span.attr-name Created at:
#{@commit.created_at.to_s(:short)}
+- if current_user && current_user.has_developer_access?(@project.gitlab_id)
+ .pull-right
+ - if @commit.builds.running_or_pending.any?
+ = link_to "Cancel", cancel_project_ref_commit_path(@project, @commit.ref, @commit.sha), class: 'btn btn-sm btn-danger'
+
+
- if @commit.yaml_errors.present?
.bs-callout.bs-callout-danger
%h4 Found errors in your .gitlab-ci.yml: