diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 19:59:43 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 19:59:43 +0200 |
commit | e3705f35c642e578625ce4574d189fa0b0869403 (patch) | |
tree | f63d779d4eb817ad6b5abed30f50ad3b85ffcab1 /templates/gititemrefs.qtpl.go | |
parent | f1643ffcbd543cacfe9ab5e46eafdd0c39cd47fd (diff) | |
download | cerrado-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/gititemrefs.qtpl.go')
-rw-r--r-- | templates/gititemrefs.qtpl.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/gititemrefs.qtpl.go b/templates/gititemrefs.qtpl.go index f2d2b6f..d2a362e 100644 --- a/templates/gititemrefs.qtpl.go +++ b/templates/gititemrefs.qtpl.go @@ -30,29 +30,29 @@ type GitItemRefsPage struct { } //line gititemrefs.qtpl:11 -func (g *GitItemRefsPage) StreamNav(qw422016 *qt422016.Writer, name string) { +func (g *GitItemRefsPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line gititemrefs.qtpl:11 - StreamGitItemNav(qw422016, name, Refs) + StreamGitItemNav(qw422016, name, ref, Refs) //line gititemrefs.qtpl:11 } //line gititemrefs.qtpl:11 -func (g *GitItemRefsPage) WriteNav(qq422016 qtio422016.Writer, name string) { +func (g *GitItemRefsPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line gititemrefs.qtpl:11 qw422016 := qt422016.AcquireWriter(qq422016) //line gititemrefs.qtpl:11 - g.StreamNav(qw422016, name) + g.StreamNav(qw422016, name, ref) //line gititemrefs.qtpl:11 qt422016.ReleaseWriter(qw422016) //line gititemrefs.qtpl:11 } //line gititemrefs.qtpl:11 -func (g *GitItemRefsPage) Nav(name string) string { +func (g *GitItemRefsPage) Nav(name, ref string) string { //line gititemrefs.qtpl:11 qb422016 := qt422016.AcquireByteBuffer() //line gititemrefs.qtpl:11 - g.WriteNav(qb422016, name) + g.WriteNav(qb422016, name, ref) //line gititemrefs.qtpl:11 qs422016 := string(qb422016.B) //line gititemrefs.qtpl:11 @@ -117,7 +117,7 @@ func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer) { <div class="col-xxl"> `) //line gititemrefs.qtpl:39 - qw422016.E().S(b.String()) + qw422016.E().S(b.Name().Short()) //line gititemrefs.qtpl:39 qw422016.N().S(` </div> |