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

//line gititemabout.qtpl:1
package templates

//line gititemabout.qtpl:1
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

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

//line gititemabout.qtpl:2
type GitItemAboutPage struct {
	About []byte
}

//line gititemabout.qtpl:7
func (g *GitItemAboutPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
//line gititemabout.qtpl:7
	StreamGitItemNav(qw422016, name, ref, Readme)
//line gititemabout.qtpl:7
}

//line gititemabout.qtpl:7
func (g *GitItemAboutPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
//line gititemabout.qtpl:7
	qw422016 := qt422016.AcquireWriter(qq422016)
//line gititemabout.qtpl:7
	g.StreamNav(qw422016, name, ref)
//line gititemabout.qtpl:7
	qt422016.ReleaseWriter(qw422016)
//line gititemabout.qtpl:7
}

//line gititemabout.qtpl:7
func (g *GitItemAboutPage) Nav(name, ref string) string {
//line gititemabout.qtpl:7
	qb422016 := qt422016.AcquireByteBuffer()
//line gititemabout.qtpl:7
	g.WriteNav(qb422016, name, ref)
//line gititemabout.qtpl:7
	qs422016 := string(qb422016.B)
//line gititemabout.qtpl:7
	qt422016.ReleaseByteBuffer(qb422016)
//line gititemabout.qtpl:7
	return qs422016
//line gititemabout.qtpl:7
}

//line gititemabout.qtpl:9
func (g *GitItemAboutPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
//line gititemabout.qtpl:9
	qw422016.N().S(`
<div class="m-2">
`)
//line gititemabout.qtpl:11
	qw422016.N().Z(g.About)
//line gititemabout.qtpl:11
	qw422016.N().S(`
</div>
`)
//line gititemabout.qtpl:13
}

//line gititemabout.qtpl:13
func (g *GitItemAboutPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) {
//line gititemabout.qtpl:13
	qw422016 := qt422016.AcquireWriter(qq422016)
//line gititemabout.qtpl:13
	g.StreamGitContent(qw422016, name, ref)
//line gititemabout.qtpl:13
	qt422016.ReleaseWriter(qw422016)
//line gititemabout.qtpl:13
}

//line gititemabout.qtpl:13
func (g *GitItemAboutPage) GitContent(name, ref string) string {
//line gititemabout.qtpl:13
	qb422016 := qt422016.AcquireByteBuffer()
//line gititemabout.qtpl:13
	g.WriteGitContent(qb422016, name, ref)
//line gititemabout.qtpl:13
	qs422016 := string(qb422016.B)
//line gititemabout.qtpl:13
	qt422016.ReleaseByteBuffer(qb422016)
//line gititemabout.qtpl:13
	return qs422016
//line gititemabout.qtpl:13
}