diff options
author | Christopher Baines <mail@cbaines.net> | 2020-10-11 21:19:00 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-10-11 21:19:00 +0100 |
commit | 4231f11cb8d5f556e38715878624cb0b88349b13 (patch) | |
tree | 545198cf1cec5da31d873d353bcf9cc4896612c5 /guix-data-service/web/view | |
parent | d05a7397fb3b4fc18cd5fc992183252d6b154e8a (diff) | |
download | data-service-4231f11cb8d5f556e38715878624cb0b88349b13.tar data-service-4231f11cb8d5f556e38715878624cb0b88349b13.tar.gz |
Tweak linking to build servers
Move the logic from different places in the view code, and also start
supporting linking to guix.cbaines.net builds. I'm unsure quite how to
generalise this, but just starting doing it is probably the way forward.
Diffstat (limited to 'guix-data-service/web/view')
-rw-r--r-- | guix-data-service/web/view/html.scm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/guix-data-service/web/view/html.scm b/guix-data-service/web/view/html.scm index 70893c4..78a6da1 100644 --- a/guix-data-service/web/view/html.scm +++ b/guix-data-service/web/view/html.scm @@ -671,12 +671,10 @@ time." (second derivation)))) ,(build-status-span status))) (a (@ (style "display: inline-block; margin-top: 0.4em;") - (href ,(simple-format - #f "~Abuild/~A" + (href ,(build-server-link-url build-server-url - (string-drop - (second derivation) - (string-length "/gnu/store/"))))) + build-server-build-id + (second derivation)))) "View build on " ,build-server-url)))) builds))) (div |