Fix display glitches.

* src/cuirass/templates.scm (specifications-table): Fix glitches.
* src/static/css/cuirass.css (job-val): New section.
* doc/cuirass.texi: Update it.
This commit is contained in:
Mathieu Othacehe 2021-04-08 15:42:07 +02:00
parent 152f7a6884
commit d3d1f384a4
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
3 changed files with 19 additions and 13 deletions

View File

@ -1117,8 +1117,9 @@ This integer field references the evaluation identifier from the
@code{Evaluations} table, indicating to which evaluation this job
belongs.
@item derivation
This text field holds the absolute name of the job derivation file.
@item builds
This integer field references the build id from the @code{Builds}
table, corresponding to this job.
@item system
This text field holds the system name of the derivation.

View File

@ -331,14 +331,13 @@ $('.job-toggle').click(function() {
(specification-name spec))))
(if summary
`((div
(@ (class "badge badge-success job-per")
(@ (class "badge badge-success job-per mr-3")
(title "Percentage succeeded"))
,(format #f "~1,2f%"
(assq-ref summary #:percentage)))
" "
(div
(@ (class "job-val")
(style "display:none"))
(@ (class "job-val"))
(div
(@ (class "badge badge-success")
(title "Succeeded"))
@ -353,16 +352,18 @@ $('.job-toggle').click(function() {
,(assq-ref summary #:scheduled))))
'())))
(td
,(let ((eval (and=> (spec-summary
,@(let ((eval (and=> (spec-summary
(specification-name spec))
(cut assq-ref <> #:evaluation))))
`(a (@ (href "/eval/" ,eval
"/dashboard"))
(div
(@ (class "oi oi-monitor d-inline-block ml-2")
(title "Dashboard")
(aria-hidden "true"))
"")))
(if eval
`((a (@ (href "/eval/" ,eval
"/dashboard"))
(div
(@ (class "oi oi-monitor d-inline-block ml-2")
(title "Dashboard")
(aria-hidden "true"))
"")))
'()))
(div
(@ (class "dropdown d-inline-block ml-2"))
(a (@ (class "oi oi-menu dropdown-toggle no-dropdown-arrow")

View File

@ -92,3 +92,7 @@ div.tooltip {
max-width: 1000px;
height: 30px;
}
.job-val {
display: none;
}