Link from a revision to the git repository page
This commit is contained in:
parent
1f977f6c12
commit
1f1deac296
2 changed files with 7 additions and 5 deletions
|
|
@ -36,8 +36,8 @@ ORDER BY datetime DESC")
|
||||||
(define (git-branches-with-repository-details-for-commit conn commit)
|
(define (git-branches-with-repository-details-for-commit conn commit)
|
||||||
(define query
|
(define query
|
||||||
"
|
"
|
||||||
SELECT git_repositories.label, git_repositories.url,
|
SELECT git_repositories.id, git_repositories.label,
|
||||||
git_repositories.cgit_url_base,
|
git_repositories.url, git_repositories.cgit_url_base,
|
||||||
git_branches.name, git_branches.datetime
|
git_branches.name, git_branches.datetime
|
||||||
FROM git_branches
|
FROM git_branches
|
||||||
INNER JOIN git_repositories
|
INNER JOIN git_repositories
|
||||||
|
|
@ -45,7 +45,7 @@ INNER JOIN git_repositories
|
||||||
WHERE git_branches.commit = $1")
|
WHERE git_branches.commit = $1")
|
||||||
|
|
||||||
(group-list-by-first-n-fields
|
(group-list-by-first-n-fields
|
||||||
3
|
4
|
||||||
(exec-query conn query (list commit))))
|
(exec-query conn query (list commit))))
|
||||||
|
|
||||||
(define* (most-recent-commits-for-branch conn git-repository-id
|
(define* (most-recent-commits-for-branch conn git-repository-id
|
||||||
|
|
|
||||||
|
|
@ -426,8 +426,10 @@
|
||||||
`((h3 "Git repositories")
|
`((h3 "Git repositories")
|
||||||
,@(map
|
,@(map
|
||||||
(match-lambda
|
(match-lambda
|
||||||
(((label url cgit-url-base) . branches)
|
(((id label url cgit-url-base) . branches)
|
||||||
`((h4 ,url)
|
`((a (@ (href ,(string-append
|
||||||
|
"/repository/" id)))
|
||||||
|
(h4 ,url))
|
||||||
,@(map
|
,@(map
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((name datetime)
|
((name datetime)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue