cerrado @ 5ce7d18d415c6911740ba15e3b4e6a1b94562019

  1// Code generated by qtc from "gititemlog.qtpl". DO NOT EDIT.
  2// See https://github.com/valyala/quicktemplate for details.
  3
  4//line templates/gititemlog.qtpl:1
  5package templates
  6
  7//line templates/gititemlog.qtpl:1
  8import "github.com/go-git/go-git/v5/plumbing/object"
  9
 10//line templates/gititemlog.qtpl:3
 11import (
 12	qtio422016 "io"
 13
 14	qt422016 "github.com/valyala/quicktemplate"
 15)
 16
 17//line templates/gititemlog.qtpl:3
 18var (
 19	_ = qtio422016.Copy
 20	_ = qt422016.AcquireByteBuffer
 21)
 22
 23//line templates/gititemlog.qtpl:4
 24type GitItemLogPage struct {
 25	Commits []*object.Commit
 26}
 27
 28//line templates/gititemlog.qtpl:9
 29func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
 30//line templates/gititemlog.qtpl:9
 31	StreamGitItemNav(qw422016, name, ref, Log)
 32//line templates/gititemlog.qtpl:9
 33}
 34
 35//line templates/gititemlog.qtpl:9
 36func (g *GitItemLogPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
 37//line templates/gititemlog.qtpl:9
 38	qw422016 := qt422016.AcquireWriter(qq422016)
 39//line templates/gititemlog.qtpl:9
 40	g.StreamNav(qw422016, name, ref)
 41//line templates/gititemlog.qtpl:9
 42	qt422016.ReleaseWriter(qw422016)
 43//line templates/gititemlog.qtpl:9
 44}
 45
 46//line templates/gititemlog.qtpl:9
 47func (g *GitItemLogPage) Nav(name, ref string) string {
 48//line templates/gititemlog.qtpl:9
 49	qb422016 := qt422016.AcquireByteBuffer()
 50//line templates/gititemlog.qtpl:9
 51	g.WriteNav(qb422016, name, ref)
 52//line templates/gititemlog.qtpl:9
 53	qs422016 := string(qb422016.B)
 54//line templates/gititemlog.qtpl:9
 55	qt422016.ReleaseByteBuffer(qb422016)
 56//line templates/gititemlog.qtpl:9
 57	return qs422016
 58//line templates/gititemlog.qtpl:9
 59}
 60
 61//line templates/gititemlog.qtpl:11
 62func (g *GitItemLogPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
 63//line templates/gititemlog.qtpl:11
 64	qw422016.N().S(`
 65<div class="event-list">
 66  `)
 67//line templates/gititemlog.qtpl:13
 68	for _, c := range g.Commits {
 69//line templates/gititemlog.qtpl:13
 70		qw422016.N().S(`
 71  `)
 72//line templates/gititemlog.qtpl:14
 73		StreamCommit(qw422016, name, c, false)
 74//line templates/gititemlog.qtpl:14
 75		qw422016.N().S(`
 76  `)
 77//line templates/gititemlog.qtpl:15
 78	}
 79//line templates/gititemlog.qtpl:15
 80	qw422016.N().S(`
 81</div>
 82`)
 83//line templates/gititemlog.qtpl:17
 84}
 85
 86//line templates/gititemlog.qtpl:17
 87func (g *GitItemLogPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) {
 88//line templates/gititemlog.qtpl:17
 89	qw422016 := qt422016.AcquireWriter(qq422016)
 90//line templates/gititemlog.qtpl:17
 91	g.StreamGitContent(qw422016, name, ref)
 92//line templates/gititemlog.qtpl:17
 93	qt422016.ReleaseWriter(qw422016)
 94//line templates/gititemlog.qtpl:17
 95}
 96
 97//line templates/gititemlog.qtpl:17
 98func (g *GitItemLogPage) GitContent(name, ref string) string {
 99//line templates/gititemlog.qtpl:17
100	qb422016 := qt422016.AcquireByteBuffer()
101//line templates/gititemlog.qtpl:17
102	g.WriteGitContent(qb422016, name, ref)
103//line templates/gititemlog.qtpl:17
104	qs422016 := string(qb422016.B)
105//line templates/gititemlog.qtpl:17
106	qt422016.ReleaseByteBuffer(qb422016)
107//line templates/gititemlog.qtpl:17
108	return qs422016
109//line templates/gititemlog.qtpl:17
110}