aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl.go
blob: c9a00b29d0fd28cd514db8e97d63f5dcff9b172b (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// Code generated by qtc from "gititem.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

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

//line templates/gititem.qtpl:1
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line templates/gititem.qtpl:1
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line templates/gititem.qtpl:2
type GitItemBase interface {
//line templates/gititem.qtpl:2
	Nav(name, ref string) string
//line templates/gititem.qtpl:2
	StreamNav(qw422016 *qt422016.Writer, name, ref string)
//line templates/gititem.qtpl:2
	WriteNav(qq422016 qtio422016.Writer, name, ref string)
//line templates/gititem.qtpl:2
	GitContent(name, ref string) string
//line templates/gititem.qtpl:2
	StreamGitContent(qw422016 *qt422016.Writer, name, ref string)
//line templates/gititem.qtpl:2
	WriteGitContent(qq422016 qtio422016.Writer, name, ref string)
//line templates/gititem.qtpl:2
}

//line templates/gititem.qtpl:9
type GitItemPage struct {
	Name string
	Ref  string
	GitItemBase
}

//line templates/gititem.qtpl:16
func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer) {
//line templates/gititem.qtpl:16
	qw422016.N().S(`Git | `)
//line templates/gititem.qtpl:16
	qw422016.E().S(p.Name)
//line templates/gititem.qtpl:16
}

//line templates/gititem.qtpl:16
func (p *GitItemPage) WriteTitle(qq422016 qtio422016.Writer) {
//line templates/gititem.qtpl:16
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititem.qtpl:16
	p.StreamTitle(qw422016)
//line templates/gititem.qtpl:16
	qt422016.ReleaseWriter(qw422016)
//line templates/gititem.qtpl:16
}

//line templates/gititem.qtpl:16
func (p *GitItemPage) Title() string {
//line templates/gititem.qtpl:16
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititem.qtpl:16
	p.WriteTitle(qb422016)
//line templates/gititem.qtpl:16
	qs422016 := string(qb422016.B)
//line templates/gititem.qtpl:16
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititem.qtpl:16
	return qs422016
//line templates/gititem.qtpl:16
}

//line templates/gititem.qtpl:18
func (p *GitItemPage) StreamNavbar(qw422016 *qt422016.Writer) {
//line templates/gititem.qtpl:18
	StreamNavbar(qw422016, Git)
//line templates/gititem.qtpl:18
}

//line templates/gititem.qtpl:18
func (p *GitItemPage) WriteNavbar(qq422016 qtio422016.Writer) {
//line templates/gititem.qtpl:18
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititem.qtpl:18
	p.StreamNavbar(qw422016)
//line templates/gititem.qtpl:18
	qt422016.ReleaseWriter(qw422016)
//line templates/gititem.qtpl:18
}

//line templates/gititem.qtpl:18
func (p *GitItemPage) Navbar() string {
//line templates/gititem.qtpl:18
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititem.qtpl:18
	p.WriteNavbar(qb422016)
//line templates/gititem.qtpl:18
	qs422016 := string(qb422016.B)
//line templates/gititem.qtpl:18
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititem.qtpl:18
	return qs422016
//line templates/gititem.qtpl:18
}

//line templates/gititem.qtpl:20
func (p *GitItemPage) StreamContent(qw422016 *qt422016.Writer) {
//line templates/gititem.qtpl:20
	qw422016.N().S(`
`)
//line templates/gititem.qtpl:21
	p.StreamNav(qw422016, p.Name, p.Ref)
//line templates/gititem.qtpl:21
	qw422016.N().S(`
<div class="container">
`)
//line templates/gititem.qtpl:23
	p.StreamGitContent(qw422016, p.Name, p.Ref)
//line templates/gititem.qtpl:23
	qw422016.N().S(`
</div>
`)
//line templates/gititem.qtpl:25
}

//line templates/gititem.qtpl:25
func (p *GitItemPage) WriteContent(qq422016 qtio422016.Writer) {
//line templates/gititem.qtpl:25
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititem.qtpl:25
	p.StreamContent(qw422016)
//line templates/gititem.qtpl:25
	qt422016.ReleaseWriter(qw422016)
//line templates/gititem.qtpl:25
}

//line templates/gititem.qtpl:25
func (p *GitItemPage) Content() string {
//line templates/gititem.qtpl:25
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititem.qtpl:25
	p.WriteContent(qb422016)
//line templates/gititem.qtpl:25
	qs422016 := string(qb422016.B)
//line templates/gititem.qtpl:25
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititem.qtpl:25
	return qs422016
//line templates/gititem.qtpl:25
}

//line templates/gititem.qtpl:27
func (p *GitItemPage) StreamScript(qw422016 *qt422016.Writer) {
//line templates/gititem.qtpl:27
	qw422016.N().S(`
`)
//line templates/gititem.qtpl:28
}

//line templates/gititem.qtpl:28
func (p *GitItemPage) WriteScript(qq422016 qtio422016.Writer) {
//line templates/gititem.qtpl:28
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/gititem.qtpl:28
	p.StreamScript(qw422016)
//line templates/gititem.qtpl:28
	qt422016.ReleaseWriter(qw422016)
//line templates/gititem.qtpl:28
}

//line templates/gititem.qtpl:28
func (p *GitItemPage) Script() string {
//line templates/gititem.qtpl:28
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/gititem.qtpl:28
	p.WriteScript(qb422016)
//line templates/gititem.qtpl:28
	qs422016 := string(qb422016.B)
//line templates/gititem.qtpl:28
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/gititem.qtpl:28
	return qs422016
//line templates/gititem.qtpl:28
}