diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-10-14 09:20:55 -0500 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-10-18 08:29:29 -0500 |
commit | 2115c360d0e096ca945bb2a39862ae8d14abfa4f (patch) | |
tree | c8e6d5da957ddb4fbe22582f93c902525212fe2f /app/views/projects/ci/builds/_build.html.haml | |
parent | 0bd525005ba279eae2733c0c68df280e4fb25b70 (diff) | |
download | gitlab-ce-2115c360d0e096ca945bb2a39862ae8d14abfa4f.tar.gz |
Remove unnecessary retried check & fix test failures
Diffstat (limited to 'app/views/projects/ci/builds/_build.html.haml')
-rw-r--r-- | app/views/projects/ci/builds/_build.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml index 583fd958849..bf157e4f64a 100644 --- a/app/views/projects/ci/builds/_build.html.haml +++ b/app/views/projects/ci/builds/_build.html.haml @@ -6,7 +6,7 @@ - coverage = local_assigns.fetch(:coverage, false) - allow_retry = local_assigns.fetch(:allow_retry, false) -%tr.build.commit{class: ('retried' if defined?(retried) && retried)} +%tr.build.commit{class: ('retried' if retried)} %td.status - if can?(current_user, :read_build, build) = ci_status_with_icon(build.status, namespace_project_build_url(build.project.namespace, build.project, build)) @@ -36,7 +36,7 @@ - if build.stuck? = icon('warning', class: 'text-warning has-tooltip', title: 'Build is stuck. Check runners.') - - if defined?(retried) && retried + - if retried = icon('refresh', class: 'text-warning has-tooltip', title: 'Build was retried') .label-container |