aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-01 19:59:43 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-01 19:59:43 +0200
commite3705f35c642e578625ce4574d189fa0b0869403 (patch)
treef63d779d4eb817ad6b5abed30f50ad3b85ffcab1 /templates/gitlist.qtpl.go
parentf1643ffcbd543cacfe9ab5e46eafdd0c39cd47fd (diff)
downloadcerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.gz
cerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.bz2
cerrado-e3705f35c642e578625ce4574d189fa0b0869403.zip
feat: Add ref support
Now log and tree can be loaded using a given reference.
Diffstat (limited to 'templates/gitlist.qtpl.go')
-rw-r--r--templates/gitlist.qtpl.go16
1 files changed, 12 insertions, 4 deletions
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</a>
+ qw422016.N().S(`/log/`)
+//line gitlist.qtpl:26
+ qw422016.E().S(r.Ref)
+//line gitlist.qtpl:26
+ qw422016.N().S(`">log</a>
<a href="/`)
//line gitlist.qtpl:27
qw422016.E().S(r.Name)
//line gitlist.qtpl:27
- qw422016.N().S(`/log">log</a>
+ qw422016.N().S(`/tree/`)
+//line gitlist.qtpl:27
+ qw422016.E().S(r.Ref)
+//line gitlist.qtpl:27
+ qw422016.N().S(`">tree</a>
<a href="/`)
//line gitlist.qtpl:28
qw422016.E().S(r.Name)
//line gitlist.qtpl:28
- qw422016.N().S(`/tree">tree</a>
+ qw422016.N().S(`/refs">refs</a>
</p>
</div>
`)