aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl.go
blob: 8048e5878e26da40142490268067ed5d5eb18b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Code generated by qtc from "gititemcommit.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

//line templates/gititemcommit.qtpl:1
package templates

//line templates/gititemcommit.qtpl:1
import "github.com/go-git/go-git/v5/plumbing/object"

//line templates/gititemcommit.qtpl:3
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line templates/gititemcommit.qtpl:3
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line templates/gititemcommit.qtpl:4
type GitItemCommitPage struct {
	Commit *object.Commit
	Diff   string
}

//line templates/gititemcommit.qtpl:10
func (g *GitItemCommitPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
//line templates/gititemcommit.qtpl:10
	StreamGitItemNav(qw422016, name, ref, Log)
//line templates/gititemcommit.qtpl:10
}

//line templates/gititemcommit.qtpl:10
func (g *GitItemCommitPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
//line templates/gititemcommit.qtpl:10
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititemcommit.qtpl:10
	g.StreamNav(qw422016, name, ref)
//line templates/gititemcommit.qtpl:10
	qt422016.ReleaseWriter(qw422016)
//line templates/gititemcommit.qtpl:10
}

//line templates/gititemcommit.qtpl:10
func (g *GitItemCommitPage) Nav(name, ref string) string {
//line templates/gititemcommit.qtpl:10
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititemcommit.qtpl:10
	g.WriteNav(qb422016, name, ref)
//line templates/gititemcommit.qtpl:10
	qs422016 := string(qb422016.B)
//line templates/gititemcommit.qtpl:10
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititemcommit.qtpl:10
	return qs422016
//line templates/gititemcommit.qtpl:10
}

//line templates/gititemcommit.qtpl:12
func (g *GitItemCommitPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
//line templates/gititemcommit.qtpl:12
	qw422016.N().S(`
<div class="event-list">
  `)
//line templates/gititemcommit.qtpl:14
	StreamCommit(qw422016, name, g.Commit, true)
//line templates/gititemcommit.qtpl:14
	qw422016.N().S(`
</div>
<div class="code-view">
<pre>`)
//line templates/gititemcommit.qtpl:17
	qw422016.E().S(g.Diff)
//line templates/gititemcommit.qtpl:17
	qw422016.N().S(`</pre>
</div>
`)
//line templates/gititemcommit.qtpl:19
}

//line templates/gititemcommit.qtpl:19
func (g *GitItemCommitPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) {
//line templates/gititemcommit.qtpl:19
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititemcommit.qtpl:19
	g.StreamGitContent(qw422016, name, ref)
//line templates/gititemcommit.qtpl:19
	qt422016.ReleaseWriter(qw422016)
//line templates/gititemcommit.qtpl:19
}

//line templates/gititemcommit.qtpl:19
func (g *GitItemCommitPage) GitContent(name, ref string) string {
//line templates/gititemcommit.qtpl:19
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititemcommit.qtpl:19
	g.WriteGitContent(qb422016, name, ref)
//line templates/gititemcommit.qtpl:19
	qs422016 := string(qb422016.B)
//line templates/gititemcommit.qtpl:19
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititemcommit.qtpl:19
	return qs422016
//line templates/gititemcommit.qtpl:19
}