Extract out the branches with most recent commits table
As I'm thinking about using this on the index page.
This commit is contained in:
parent
219b1fd4ad
commit
c23822e14d
1 changed files with 42 additions and 36 deletions
|
|
@ -687,25 +687,9 @@
|
||||||
"Next page")))
|
"Next page")))
|
||||||
'())))))
|
'())))))
|
||||||
|
|
||||||
(define* (view-git-repository git-repository-id
|
(define (table/branches-with-most-recent-commits
|
||||||
label url cgit-url-base
|
git-repository-id branches-with-most-recent-commits)
|
||||||
branches-with-most-recent-commits)
|
`(table
|
||||||
(layout
|
|
||||||
#:body
|
|
||||||
`(,(header)
|
|
||||||
(div
|
|
||||||
(@ (class "container"))
|
|
||||||
(div
|
|
||||||
(@ (class "row"))
|
|
||||||
(div
|
|
||||||
(@ (class "col-md-12"))
|
|
||||||
(h1 ,url)))
|
|
||||||
(div
|
|
||||||
(@ (class "row"))
|
|
||||||
(div
|
|
||||||
(@ (class "col-md-12"))
|
|
||||||
(h3 "Branches")
|
|
||||||
(table
|
|
||||||
(@ (class "table table-responsive"))
|
(@ (class "table table-responsive"))
|
||||||
(thead
|
(thead
|
||||||
(tr
|
(tr
|
||||||
|
|
@ -740,7 +724,29 @@
|
||||||
(else
|
(else
|
||||||
'(span (@ (class "label label-default"))
|
'(span (@ (class "label label-default"))
|
||||||
"No information yet")))))))))
|
"No information yet")))))))))
|
||||||
branches-with-most-recent-commits)))))))))
|
branches-with-most-recent-commits))))
|
||||||
|
|
||||||
|
(define* (view-git-repository git-repository-id
|
||||||
|
label url cgit-url-base
|
||||||
|
branches-with-most-recent-commits)
|
||||||
|
(layout
|
||||||
|
#:body
|
||||||
|
`(,(header)
|
||||||
|
(div
|
||||||
|
(@ (class "container"))
|
||||||
|
(div
|
||||||
|
(@ (class "row"))
|
||||||
|
(div
|
||||||
|
(@ (class "col-md-12"))
|
||||||
|
(h1 ,url)))
|
||||||
|
(div
|
||||||
|
(@ (class "row"))
|
||||||
|
(div
|
||||||
|
(@ (class "col-md-12"))
|
||||||
|
(h3 "Branches")
|
||||||
|
,(table/branches-with-most-recent-commits
|
||||||
|
git-repository-id
|
||||||
|
branches-with-most-recent-commits)))))))
|
||||||
|
|
||||||
(define (view-branch git-repository-id
|
(define (view-branch git-repository-id
|
||||||
branch-name query-parameters branch-commits)
|
branch-name query-parameters branch-commits)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue