cerrado @ 2e4b2fb52a539188b27212005d626f0849e78196

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