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:
parent
d9879583af
commit
33798abc3b
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue