Commit 6d712890 authored by Frederic Caplette's avatar Frederic Caplette

Don't show "allowed to fail" tag on successful jobs

When a job is done and has passed, seeing the
"allowed to fail" tag is confusing so we are
removing it in this instance.
parent ec85e345
......@@ -45,7 +45,7 @@
= tag
- if job.try(:trigger_request)
%span.badge.badge-info= _('triggered')
- if job.try(:allow_failure)
- if job.try(:allow_failure) && !job.success?
%span.badge.badge-warning= _('allowed to fail')
- if job.schedulable?
%span.badge.badge-info= s_('DelayedJobs|delayed')
......
---
title: Hides the "Allowed to fail" tag on jobs that are successful
merge_request: 25458
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment