aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemlog.qtpl.go
blob: 20fc1f54a9f6ce2ea4a7a14cbb6dc6e6d60b5d6e (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
109
110
// Code generated by qtc from "gititemlog.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

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

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

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

	qt422016 "github.com/valyala/quicktemplate"
)

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

//line templates/gititemlog.qtpl:4
type GitItemLogPage struct {
	Commits []*object.Commit
}

//line templates/gititemlog.qtpl:9
func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
//line templates/gititemlog.qtpl:9
	StreamGitItemNav(qw422016, name, ref, Log)
//line templates/gititemlog.qtpl:9
}

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

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

//line templates/gititemlog.qtpl:11
func (g *GitItemLogPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
//line templates/gititemlog.qtpl:11
	qw422016.N().S(`
<div class="event-list">
  `)
//line templates/gititemlog.qtpl:13
	for _, c := range g.Commits {
//line templates/gititemlog.qtpl:13
		qw422016.N().S(`
  `)
//line templates/gititemlog.qtpl:14
		StreamCommit(qw422016, name, c, false)
//line templates/gititemlog.qtpl:14
		qw422016.N().S(`
  `)
//line templates/gititemlog.qtpl:15
	}
//line templates/gititemlog.qtpl:15
	qw422016.N().S(`
</div>
`)
//line templates/gititemlog.qtpl:17
}

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

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