Neaten up how branches in Git repositories are linked to

This commit is contained in:
Christopher Baines 2019-07-27 09:38:50 +01:00
parent a2caa3ea30
commit 08d9cbbfe3

View file

@ -388,13 +388,19 @@
,@(map ,@(map
(match-lambda (match-lambda
((name datetime) ((name datetime)
(if (string-null? cgit-url-base) `(div
`(,name " at " ,datetime) (a (@ (href ,(string-append "/repository/" id
`(a (@ (href ,(string-append "/branch/" name)))
cgit-url-base ,name)
"commit/?id=" " at " ,datetime
commit-hash))) ,@(if (string-null? cgit-url-base)
,name " at " ,datetime)))) '()
`(" "
(a (@ (href ,(string-append
cgit-url-base
"commit/?id="
commit-hash)))
"(View cgit)"))))))
branches)))) branches))))
git-repositories-and-branches))) git-repositories-and-branches)))