templates: Do not show “Weather” row when weather is unknown.
* src/cuirass/templates.scm (build-details): Do not emit “Weather” row when WEATHER is unknown.
This commit is contained in:
parent
5fbbd26a78
commit
e9c27b7ce5
|
@ -774,13 +774,15 @@ the existing SPEC otherwise."
|
|||
(td ,(if (completed? status)
|
||||
(time->string (build-completion-time build))
|
||||
"—")))
|
||||
(tr (th "Weather")
|
||||
(td (span (@ (class ,(weather-class weather))
|
||||
(title ,(weather-title weather))
|
||||
(aria-hidden "true"))
|
||||
"")
|
||||
" " ,(weather-title weather)
|
||||
,@(build-failure-info build)))
|
||||
,@(if (= (build-weather unknown) weather)
|
||||
'()
|
||||
`((tr (th "Weather")
|
||||
(td (span (@ (class ,(weather-class weather))
|
||||
(title ,(weather-title weather))
|
||||
(aria-hidden "true"))
|
||||
"")
|
||||
" " ,(weather-title weather)
|
||||
,@(build-failure-info build)))))
|
||||
(tr (th "Log file")
|
||||
(td ,(if (or (= (build-status started) status)
|
||||
(= (build-status succeeded) status)
|
||||
|
|
Loading…
Reference in New Issue