summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-22 21:02:31 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-22 21:02:31 +0200
commit52bfc0efa95f991f17618aa049f799f4e44e13ac (patch)
tree2847573dea159ea8681a0c1a2edbc4f759fc0bfd
parent8c8f6db4578051300794c7032bc63d68f70cce16 (diff)
downloadgitlab-ce-52bfc0efa95f991f17618aa049f799f4e44e13ac.tar.gz
Fix typo in CI/CD build partial view
-rw-r--r--app/views/projects/ci/builds/_build.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml
index 3e1c8f25dea..2227d36eed2 100644
--- a/app/views/projects/ci/builds/_build.html.haml
+++ b/app/views/projects/ci/builds/_build.html.haml
@@ -102,7 +102,7 @@
= link_to cancel_namespace_project_build_path(job.project.namespace, job.project, job, return_to: request.original_url), method: :post, title: 'Cancel', class: 'btn btn-build' do
= icon('remove', class: 'cred')
- elsif allow_retry
- - if job.playable? && !admin && can?(current_user, :play_build, jop)
+ - if job.playable? && !admin && can?(current_user, :play_build, job)
= link_to play_namespace_project_build_path(job.project.namespace, job.project, job, return_to: request.original_url), method: :post, title: 'Play', class: 'btn btn-build' do
= custom_icon('icon_play')
- elsif job.retryable?