Fix display of retried job attempts

Displaying the current number of retry attempts on the status page does
not work because of a typo, this change fixes it.

Change-Id: Ic9177e5571d77c54949598e8fc909f15b35c3731
This commit is contained in:
Benjamin Schanzel 2024-09-16 13:37:59 +02:00
parent b39a5cae99
commit cddc0e096e
No known key found for this signature in database

View File

@ -459,8 +459,8 @@ function JobLink({ job, tenant }) {
few: 'rd',
other: 'th',
}
if (job.retries > 1) {
job_name = job_name + '(' + job.tries + suffixes[ordinal_rules.select(job.tries)] + ' attempt)'
if (job.tries > 1) {
job_name = job_name + ' (' + job.tries + suffixes[ordinal_rules.select(job.tries)] + ' attempt)'
}
let name = ''