aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/view/html.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix-data-service/web/view/html.scm')
-rw-r--r--guix-data-service/web/view/html.scm30
1 files changed, 0 insertions, 30 deletions
diff --git a/guix-data-service/web/view/html.scm b/guix-data-service/web/view/html.scm
index 753cb24..ee3d4c7 100644
--- a/guix-data-service/web/view/html.scm
+++ b/guix-data-service/web/view/html.scm
@@ -36,8 +36,6 @@
display-possible-store-item
display-store-item
display-store-item-short
- build-status-value->display-string
- build-status-span
table/branches-with-most-recent-commits
@@ -359,34 +357,6 @@
"No information yet")))))))))
branches-with-most-recent-commits))))
-(define (build-status-value->display-string value)
- (assoc-ref
- '(("scheduled" . "Scheduled")
- ("started" . "Started")
- ("succeeded" . "Succeeded")
- ("failed" . "Failed")
- ("failed-dependency" . "Failed (dependency)")
- ("failed-other" . "Failed (other)")
- ("canceled" . "Canceled")
- ("" . "Unknown"))
- value))
-
-(define (build-status-span status)
- `(span (@ (class ,(string-append
- "label label-"
- (assoc-ref
- '(("scheduled" . "info")
- ("started" . "primary")
- ("succeeded" . "success")
- ("failed" . "danger")
- ("failed-dependency" . "warning")
- ("failed-other" . "danger")
- ("canceled" . "default")
- ("" . "default"))
- status)))
- (style "display: inline-block; font-size: 1.2em; margin-top: 0.4em;"))
- ,(build-status-value->display-string status)))
-
(define (display-possible-store-item value)
(match (string-split value #\/)
(("" "gnu" "store" item)