[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Ludovic Courtès |
Date: |
Wed, 22 Nov 2023 05:12:26 -0500 (EST) |
branch: master
commit bdc1f9f304a3f5931ec507dcfe0b91b185b70708
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Nov 22 11:07:14 2023 +0100
templates: Use plural wisely in “new failures” button.
* src/cuirass/templates.scm (build-eval-table): Adjust plural for
failure button.
---
src/cuirass/templates.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index c8e5a37..da118df 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -1252,7 +1252,10 @@ and BUILD-MAX are global minimal and maximal (stoptime,
rowid) pairs."
(href ,(string-append "/eval/"
(number->string eval-id)
"?status=newly-failed")))
- ,(number->string newly-failed) " new failures"))))
+ ,(number->string newly-failed)
+ ,(if (= 1 newly-failed)
+ " new failure"
+ " new failures")))))
("newly-failed"
`(a (@ (class "btn btn-warning")
(href ,(string-append "/eval/"
@@ -1260,7 +1263,9 @@ and BUILD-MAX are global minimal and maximal (stoptime,
rowid) pairs."
"?status=failed")))
"View all "
,(number->string (evaluation-summary-failed summary))
- " failures"))
+ ,(if (= 1 (evaluation-summary-failed summary))
+ " failure"
+ " failures")))
(_ ""))
,@(if (null? builds)
- master updated (ac4f5c0 -> bdc1f9f), Ludovic Courtès, 2023/11/22
- [no subject], Ludovic Courtès, 2023/11/22
- [no subject],
Ludovic Courtès <=
- [no subject], Ludovic Courtès, 2023/11/22
- [no subject], Ludovic Courtès, 2023/11/22
- [no subject], Ludovic Courtès, 2023/11/22
- [no subject], Ludovic Courtès, 2023/11/22