aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/view
diff options
context:
space:
mode:
authorDanjela Lura <danielaluraa@gmail.com>2020-08-26 13:47:48 +0200
committerChristopher Baines <mail@cbaines.net>2020-08-26 21:20:00 +0100
commitd5c101dee79f4f9ddff68dada0d012afb8f42aa6 (patch)
treef3ce420da543329496e858a01f2bf0157eef2851 /guix-data-service/web/view
parentab68b0fdb3efe68f1962b7b9698ffc225abfeabb (diff)
downloaddata-service-d5c101dee79f4f9ddff68dada0d012afb8f42aa6.tar
data-service-d5c101dee79f4f9ddff68dada0d012afb8f42aa6.tar.gz
Add JSON representation for the derivation page
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'guix-data-service/web/view')
-rw-r--r--guix-data-service/web/view/html.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/guix-data-service/web/view/html.scm b/guix-data-service/web/view/html.scm
index 2b1e4fb..405babe 100644
--- a/guix-data-service/web/view/html.scm
+++ b/guix-data-service/web/view/html.scm
@@ -602,7 +602,11 @@ time."
(a (@ (class "btn btn-lg btn-default")
(href ,(string-append file-name "/plain"))
(role "button"))
- "Plain view"))))))
+ "Plain view")
+ (a (@ (class "btn btn-lg btn-default")
+ (href ,(string-append file-name "/json"))
+ (role "button"))
+ "View JSON"))))))
(div
(@ (class "row"))
(div