[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Mathieu Othacehe |
Date: |
Mon, 19 Apr 2021 13:38:46 -0400 (EDT) |
branch: master
commit e49368a8b30190c0e4351e78d21ae2d22b51a878
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sun Apr 18 21:42:08 2021 +0200
Hide dashboard for failed evaluations.
* src/cuirass/templates.scm (evaluation-info-table): Hide dashboard button
for
failed evaluations.
---
src/cuirass/templates.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index 446ee54..3b61972 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -993,7 +993,13 @@ $('.job-toggle').click(function() {
(a (@ (href "/eval/" ,(assq-ref row #:id)
"/dashboard"))
(div
- (@ (class "oi oi-monitor d-inline-block")
+ (@ (class
+ ,(string-append
+ "oi oi-monitor d-inline-block "
+ (if (eq? (assq-ref row #:status)
+ (evaluation-status succeeded))
+ "visible"
+ "invisible")))
(title "Dashboard")
(aria-hidden "true"))
""))