From 80b6e89a7b2e9a6f9dee26dcf22277970930039f Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 23 Oct 2019 15:46:10 +0200 Subject: templates: Failed evaluations link to their log. * src/cuirass/templates.scm (evaluation-badges): Link to /eval/ID/log/raw in the 'zero?' case. --- src/cuirass/templates.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm index c584dae..059493c 100644 --- a/src/cuirass/templates.scm +++ b/src/cuirass/templates.scm @@ -257,10 +257,11 @@ ;; an evaluation failed, assume that it failed when it produced zero ;; build jobs. (if (zero? (+ succeeded failed scheduled)) - `((span (@ (class "oi oi-x text-danger") - (title "Failed") - (aria-hidden "true")) - "")) + `((a (@ (href "/eval/" ,(assq-ref evaluation #:id) "/log/raw") + (class "oi oi-x text-danger") + (title "Failed") + (aria-hidden "true")) + "")) `((a (@ (href "/eval/" ,(assq-ref evaluation #:id) "?status=succeeded") (class "badge badge-success") (title "Succeeded")) -- cgit v1.2.3