From 7f8ffb4beaf25b02bea601b2a42cea1dc8720e0a Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 22 Jul 2019 21:11:09 +0100 Subject: Show links to the cgit pages for repositories on the index page --- guix-data-service/web/view/html.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'guix-data-service/web/view') diff --git a/guix-data-service/web/view/html.scm b/guix-data-service/web/view/html.scm index a126f4d..8773d73 100644 --- a/guix-data-service/web/view/html.scm +++ b/guix-data-service/web/view/html.scm @@ -233,12 +233,18 @@ (h1 "Guix Data Service"))) ,@(map (match-lambda - (((repository-id label url) . branches-with-most-recent-commits) + (((repository-id label url cgit-url-base) . branches-with-most-recent-commits) `(div (@ (class "row")) (div (@ (class "col-sm-12")) - (h3 ,url) + (h3 (@ (style "display: inline-block;")) + ,url) + ,@(if (string-null? cgit-url-base) + '() + `((a (@ (style "padding-left: 0.8em;") + (href ,cgit-url-base)) + "(View cgit)"))) ,(if (null? branches-with-most-recent-commits) '(p "No branches") (table/branches-with-most-recent-commits -- cgit v1.2.3