Improve how repositories and branches are handled
Make the link between repositories and branches clearer, replacing the /branches and /branch pages by /repository/ and /repository/*/branch/* pages.
This commit is contained in:
parent
6dd52f08ed
commit
1f977f6c12
4 changed files with 59 additions and 21 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#:use-module (json)
|
||||
#:use-module (squee)
|
||||
#:export (all-git-repositories
|
||||
select-git-repository
|
||||
git-repository-id->url
|
||||
git-repository-url->git-repository-id
|
||||
git-repositories-containing-commit
|
||||
|
|
@ -15,6 +16,16 @@
|
|||
(string-append
|
||||
"SELECT id, label, url FROM git_repositories ORDER BY id ASC")))
|
||||
|
||||
(define (select-git-repository conn id)
|
||||
(match (exec-query
|
||||
conn
|
||||
"SELECT label, url, cgit_url_base FROM git_repositories WHERE id = $1"
|
||||
(list id))
|
||||
(()
|
||||
#f)
|
||||
((result)
|
||||
result)))
|
||||
|
||||
(define (git-repository-id->url conn id)
|
||||
(match
|
||||
(exec-query
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue