1// Code generated by qtc from "gitlist.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4//line gitlist.qtpl:1
5package templates
6
7//line gitlist.qtpl:1
8import "git.gabrielgio.me/cerrado/pkg/service"
9
10//line gitlist.qtpl:3
11import (
12 qtio422016 "io"
13
14 qt422016 "github.com/valyala/quicktemplate"
15)
16
17//line gitlist.qtpl:3
18var (
19 _ = qtio422016.Copy
20 _ = qt422016.AcquireByteBuffer
21)
22
23//line gitlist.qtpl:4
24type GitListPage struct {
25 Respositories []*service.Repository
26}
27
28//line gitlist.qtpl:9
29func (p *GitListPage) StreamTitle(qw422016 *qt422016.Writer) {
30//line gitlist.qtpl:9
31 qw422016.N().S(`Git | List`)
32//line gitlist.qtpl:9
33}
34
35//line gitlist.qtpl:9
36func (p *GitListPage) WriteTitle(qq422016 qtio422016.Writer) {
37//line gitlist.qtpl:9
38 qw422016 := qt422016.AcquireWriter(qq422016)
39//line gitlist.qtpl:9
40 p.StreamTitle(qw422016)
41//line gitlist.qtpl:9
42 qt422016.ReleaseWriter(qw422016)
43//line gitlist.qtpl:9
44}
45
46//line gitlist.qtpl:9
47func (p *GitListPage) Title() string {
48//line gitlist.qtpl:9
49 qb422016 := qt422016.AcquireByteBuffer()
50//line gitlist.qtpl:9
51 p.WriteTitle(qb422016)
52//line gitlist.qtpl:9
53 qs422016 := string(qb422016.B)
54//line gitlist.qtpl:9
55 qt422016.ReleaseByteBuffer(qb422016)
56//line gitlist.qtpl:9
57 return qs422016
58//line gitlist.qtpl:9
59}
60
61//line gitlist.qtpl:11
62func (p *GitListPage) StreamNavbar(qw422016 *qt422016.Writer) {
63//line gitlist.qtpl:11
64 StreamNavbar(qw422016, Git)
65//line gitlist.qtpl:11
66}
67
68//line gitlist.qtpl:11
69func (p *GitListPage) WriteNavbar(qq422016 qtio422016.Writer) {
70//line gitlist.qtpl:11
71 qw422016 := qt422016.AcquireWriter(qq422016)
72//line gitlist.qtpl:11
73 p.StreamNavbar(qw422016)
74//line gitlist.qtpl:11
75 qt422016.ReleaseWriter(qw422016)
76//line gitlist.qtpl:11
77}
78
79//line gitlist.qtpl:11
80func (p *GitListPage) Navbar() string {
81//line gitlist.qtpl:11
82 qb422016 := qt422016.AcquireByteBuffer()
83//line gitlist.qtpl:11
84 p.WriteNavbar(qb422016)
85//line gitlist.qtpl:11
86 qs422016 := string(qb422016.B)
87//line gitlist.qtpl:11
88 qt422016.ReleaseByteBuffer(qb422016)
89//line gitlist.qtpl:11
90 return qs422016
91//line gitlist.qtpl:11
92}
93
94//line gitlist.qtpl:13
95func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) {
96//line gitlist.qtpl:13
97 qw422016.N().S(`
98<div class="row">
99 <div class="col-md-8 offset-md-2">
100 <div class="event-list">
101 `)
102//line gitlist.qtpl:17
103 for _, r := range p.Respositories {
104//line gitlist.qtpl:17
105 qw422016.N().S(`
106 <div class="event">
107 <h4>
108 <a href="/`)
109//line gitlist.qtpl:20
110 qw422016.E().S(r.Name)
111//line gitlist.qtpl:20
112 qw422016.N().S(`">`)
113//line gitlist.qtpl:20
114 qw422016.E().S(r.Name)
115//line gitlist.qtpl:20
116 qw422016.N().S(`</a>
117 </h4>
118 </hr>
119 <p>`)
120//line gitlist.qtpl:23
121 qw422016.E().S(r.LastCommitMessage)
122//line gitlist.qtpl:23
123 qw422016.N().S(`</p>
124 <p><small>`)
125//line gitlist.qtpl:24
126 qw422016.E().S(r.LastCommitDate)
127//line gitlist.qtpl:24
128 qw422016.N().S(`</small></p>
129 </div>
130 `)
131//line gitlist.qtpl:26
132 }
133//line gitlist.qtpl:26
134 qw422016.N().S(`
135 </div>
136 `)
137//line gitlist.qtpl:28
138}
139
140//line gitlist.qtpl:28
141func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer) {
142//line gitlist.qtpl:28
143 qw422016 := qt422016.AcquireWriter(qq422016)
144//line gitlist.qtpl:28
145 p.StreamContent(qw422016)
146//line gitlist.qtpl:28
147 qt422016.ReleaseWriter(qw422016)
148//line gitlist.qtpl:28
149}
150
151//line gitlist.qtpl:28
152func (p *GitListPage) Content() string {
153//line gitlist.qtpl:28
154 qb422016 := qt422016.AcquireByteBuffer()
155//line gitlist.qtpl:28
156 p.WriteContent(qb422016)
157//line gitlist.qtpl:28
158 qs422016 := string(qb422016.B)
159//line gitlist.qtpl:28
160 qt422016.ReleaseByteBuffer(qb422016)
161//line gitlist.qtpl:28
162 return qs422016
163//line gitlist.qtpl:28
164}
165
166// </div>
167// </div>
168//
169
170//line gitlist.qtpl:32
171func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer) {
172//line gitlist.qtpl:32
173 qw422016.N().S(`
174`)
175//line gitlist.qtpl:33
176}
177
178//line gitlist.qtpl:33
179func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer) {
180//line gitlist.qtpl:33
181 qw422016 := qt422016.AcquireWriter(qq422016)
182//line gitlist.qtpl:33
183 p.StreamScript(qw422016)
184//line gitlist.qtpl:33
185 qt422016.ReleaseWriter(qw422016)
186//line gitlist.qtpl:33
187}
188
189//line gitlist.qtpl:33
190func (p *GitListPage) Script() string {
191//line gitlist.qtpl:33
192 qb422016 := qt422016.AcquireByteBuffer()
193//line gitlist.qtpl:33
194 p.WriteScript(qb422016)
195//line gitlist.qtpl:33
196 qs422016 := string(qb422016.B)
197//line gitlist.qtpl:33
198 qt422016.ReleaseByteBuffer(qb422016)
199//line gitlist.qtpl:33
200 return qs422016
201//line gitlist.qtpl:33
202}