summaryrefslogtreecommitdiff
path: root/app/views/projects/ci/builds/_build.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/ci/builds/_build.html.haml')
-rw-r--r--app/views/projects/ci/builds/_build.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml
index 7123efffd5b..d22d1da8402 100644
--- a/app/views/projects/ci/builds/_build.html.haml
+++ b/app/views/projects/ci/builds/_build.html.haml
@@ -1,8 +1,7 @@
%tr.build
%td.status
- if can?(current_user, :read_build, build)
- = link_to namespace_project_build_url(build.project.namespace, build.project, build), class: "ci-status ci-#{build.status}" do
- = ci_status_with_icon(build.status)
+ = ci_status_with_icon(build.status, namespace_project_build_url(build.project.namespace, build.project, build))
- else
= ci_status_with_icon(build.status)