aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/revision
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-10-11 21:19:00 +0100
committerChristopher Baines <mail@cbaines.net>2020-10-11 21:19:00 +0100
commit4231f11cb8d5f556e38715878624cb0b88349b13 (patch)
tree545198cf1cec5da31d873d353bcf9cc4896612c5 /guix-data-service/web/revision
parentd05a7397fb3b4fc18cd5fc992183252d6b154e8a (diff)
downloaddata-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/revision')
-rw-r--r--guix-data-service/web/revision/html.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/guix-data-service/web/revision/html.scm b/guix-data-service/web/revision/html.scm
index 571f6f6..b72dd9f 100644
--- a/guix-data-service/web/revision/html.scm
+++ b/guix-data-service/web/revision/html.scm
@@ -1978,12 +1978,10 @@ figure {
(td (a (@ (href ,derivation-file-name))
,(display-store-item-short derivation-file-name)))
(td ,timestamp)
- (td (a (@ (href ,(simple-format
- #f "~Abuild/~A"
+ (td (a (@ (href ,(build-server-link-url
build-server-url
- (string-drop
- derivation-file-name
- (string-length "/gnu/store/")))))
+ build-server-build-id
+ derivation-file-name)))
"View build on " ,build-server-url)))))
builds)))))))))