2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-cuirass.git synced 2023-12-14 06:03:04 +01:00

Handle evaluations without timestamp.

This is a follow-up of d9879583af.

* src/cuirass/templates.scm (evaluation-build-table): Do not print evaluation
date if the "timestamp" field equals zero.
This commit is contained in:
Mathieu Othacehe 2020-09-06 14:42:40 +02:00
parent d9879583af
commit 33798abc3b
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -619,12 +619,14 @@ evaluation."
`((p (@ (class "lead"))
,(format #f "Evaluation #~a" id))
,(if (= evaltime 0)
`(p ,(format #f "Evaluation started ~a."
(time->string timestamp)))
`(p ,(format #f "Evaluation completed ~a in ~a."
(time->string evaltime)
(seconds->string duration))))
,@(if (= timestamp 0)
'()
`((p ,(if (= evaltime 0)
(format #f "Evaluation started ~a."
(time->string timestamp))
(format #f "Evaluation completed ~a in ~a."
(time->string evaltime)
(seconds->string duration))))))
(table (@ (class "table table-sm table-hover"))
(thead
(tr (th (@ (class "border-0") (scope "col")) "Input")