From e3705f35c642e578625ce4574d189fa0b0869403 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 1 Jun 2024 19:59:43 +0200 Subject: feat: Add ref support Now log and tree can be loaded using a given reference. --- templates/gitlist.qtpl.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'templates/gitlist.qtpl.go') diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go index 73f887a..d9f7ec1 100644 --- a/templates/gitlist.qtpl.go +++ b/templates/gitlist.qtpl.go @@ -109,7 +109,7 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) { //line gitlist.qtpl:20 qw422016.E().S(r.Name) //line gitlist.qtpl:20 - qw422016.N().S(`/summary">`) + qw422016.N().S(`">`) //line gitlist.qtpl:20 qw422016.E().S(r.Name) //line gitlist.qtpl:20 @@ -131,17 +131,25 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) { //line gitlist.qtpl:26 qw422016.E().S(r.Name) //line gitlist.qtpl:26 - qw422016.N().S(`/summary">summary + qw422016.N().S(`/log/`) +//line gitlist.qtpl:26 + qw422016.E().S(r.Ref) +//line gitlist.qtpl:26 + qw422016.N().S(`">log log + qw422016.N().S(`/tree/`) +//line gitlist.qtpl:27 + qw422016.E().S(r.Ref) +//line gitlist.qtpl:27 + qw422016.N().S(`">tree tree + qw422016.N().S(`/refs">refs

`) -- cgit v1.2.3