summaryrefslogtreecommitdiff
path: root/app/views/projects/commit_statuses/_commit_status.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/commit_statuses/_commit_status.html.haml')
-rw-r--r--app/views/projects/commit_statuses/_commit_status.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/commit_statuses/_commit_status.html.haml b/app/views/projects/commit_statuses/_commit_status.html.haml
index e3a17faf0bd..7314f8e79d3 100644
--- a/app/views/projects/commit_statuses/_commit_status.html.haml
+++ b/app/views/projects/commit_statuses/_commit_status.html.haml
@@ -41,11 +41,11 @@
#{commit_status.coverage}%
%td
- - if defined?(controls) && controls && current_user && can?(current_user, :manage_builds, gl_project)
- .pull-right
+ .pull-right
+ - if current_user && can?(current_user, :manage_builds, commit_status.gl_project)
- if commit_status.cancel_url
= link_to commit_status.cancel_url, title: 'Cancel' do
%i.fa.fa-remove.cred
- - elsif commit_status.retry_url
+ - elsif defined?(allow_retry) && allow_retry && commit_status.retry_url
= link_to commit_status.retry_url, method: :post, title: 'Retry' do
%i.fa.fa-repeat