templates: Improve toggle button on evaluation and spec pages.

The contrast icon was arguably misleading.

* src/cuirass/templates.scm (specifications-table): Use ‘oi-dashboard’
rather than ‘oi-contrast’ for the toggle button; clarify ‘title’.
(evaluation-info-table): Likewise.
This commit is contained in:
Ludovic Courtès 2023-10-29 17:20:42 +01:00
parent b80461b75e
commit 6611151b7f
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 4 deletions

View File

@ -311,13 +311,13 @@ system whose names start with " (code "guile-") ":" (br)
(role "button"))
(i (@ (class "oi oi-rss text-warning py-1"))
""))))
,(let ((name "Toggle jobs"))
,(let ((name "Toggle between success rate and job count"))
`(div
(button (@ (class "btn btn-outline-primary job-toggle")
(title ,name)
(aria-label ,name)
(type "button"))
(i (@ (class "oi oi-contrast d-inline-block py-1"))
(i (@ (class "oi oi-dashboard d-inline-block py-1"))
"")))))
(table
(@ (id "spec-table")
@ -1025,13 +1025,13 @@ the existing SPEC otherwise."
(i (@ (class "oi oi-rss text-warning py-1")
(aria-hidden "true"))
""))))
,(let ((name "Toggle jobs"))
,(let ((name "Toggle between build changes and build overview"))
`(div
(button (@ (class "btn btn-outline-primary job-toggle")
(title ,name)
(aria-label ,name)
(type "button"))
(i (@ (class "oi oi-contrast d-inline-block py-1"))
(i (@ (class "oi oi-dashboard d-inline-block py-1"))
"")))))
(table
(@ (class "table table-sm table-hover table-striped"))