Neaten up how branches in Git repositories are linked to
This commit is contained in:
parent
a2caa3ea30
commit
08d9cbbfe3
1 changed files with 13 additions and 7 deletions
|
|
@ -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)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue