1// Code generated by qtc from "gitlist.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4//line templates/gitlist.qtpl:1
5package templates
6
7//line templates/gitlist.qtpl:1
8import "git.gabrielgio.me/cerrado/pkg/service"
9
10//line templates/gitlist.qtpl:2
11import "context"
12
13//line templates/gitlist.qtpl:4
14import (
15 qtio422016 "io"
16
17 qt422016 "github.com/valyala/quicktemplate"
18)
19
20//line templates/gitlist.qtpl:4
21var (
22 _ = qtio422016.Copy
23 _ = qt422016.AcquireByteBuffer
24)
25
26//line templates/gitlist.qtpl:5
27type GitListPage struct {
28 Respositories []*service.Repository
29 About []byte
30}
31
32//line templates/gitlist.qtpl:11
33func (p *GitListPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) {
34//line templates/gitlist.qtpl:11
35 qw422016.N().S(`Git | List`)
36//line templates/gitlist.qtpl:11
37}
38
39//line templates/gitlist.qtpl:11
40func (p *GitListPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) {
41//line templates/gitlist.qtpl:11
42 qw422016 := qt422016.AcquireWriter(qq422016)
43//line templates/gitlist.qtpl:11
44 p.StreamTitle(qw422016, ctx)
45//line templates/gitlist.qtpl:11
46 qt422016.ReleaseWriter(qw422016)
47//line templates/gitlist.qtpl:11
48}
49
50//line templates/gitlist.qtpl:11
51func (p *GitListPage) Title(ctx context.Context) string {
52//line templates/gitlist.qtpl:11
53 qb422016 := qt422016.AcquireByteBuffer()
54//line templates/gitlist.qtpl:11
55 p.WriteTitle(qb422016, ctx)
56//line templates/gitlist.qtpl:11
57 qs422016 := string(qb422016.B)
58//line templates/gitlist.qtpl:11
59 qt422016.ReleaseByteBuffer(qb422016)
60//line templates/gitlist.qtpl:11
61 return qs422016
62//line templates/gitlist.qtpl:11
63}
64
65//line templates/gitlist.qtpl:13
66func (p *GitListPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) {
67//line templates/gitlist.qtpl:13
68 StreamNavbar(qw422016, ctx, Git)
69//line templates/gitlist.qtpl:13
70}
71
72//line templates/gitlist.qtpl:13
73func (p *GitListPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) {
74//line templates/gitlist.qtpl:13
75 qw422016 := qt422016.AcquireWriter(qq422016)
76//line templates/gitlist.qtpl:13
77 p.StreamNavbar(qw422016, ctx)
78//line templates/gitlist.qtpl:13
79 qt422016.ReleaseWriter(qw422016)
80//line templates/gitlist.qtpl:13
81}
82
83//line templates/gitlist.qtpl:13
84func (p *GitListPage) Navbar(ctx context.Context) string {
85//line templates/gitlist.qtpl:13
86 qb422016 := qt422016.AcquireByteBuffer()
87//line templates/gitlist.qtpl:13
88 p.WriteNavbar(qb422016, ctx)
89//line templates/gitlist.qtpl:13
90 qs422016 := string(qb422016.B)
91//line templates/gitlist.qtpl:13
92 qt422016.ReleaseByteBuffer(qb422016)
93//line templates/gitlist.qtpl:13
94 return qs422016
95//line templates/gitlist.qtpl:13
96}
97
98//line templates/gitlist.qtpl:15
99func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) {
100//line templates/gitlist.qtpl:15
101 qw422016.N().S(`
102<div class="row">
103 <div class="col-md-6 order-last order-md-first">
104 <div class="event-list">
105 `)
106//line templates/gitlist.qtpl:19
107 for _, r := range p.Respositories {
108//line templates/gitlist.qtpl:19
109 qw422016.N().S(`
110 <div class="event">
111 <div class="row">
112 <div class="col-md">
113 <a href="/`)
114//line templates/gitlist.qtpl:23
115 qw422016.E().S(r.Name)
116//line templates/gitlist.qtpl:23
117 qw422016.N().S(`/">`)
118//line templates/gitlist.qtpl:23
119 qw422016.E().S(r.Name)
120//line templates/gitlist.qtpl:23
121 qw422016.N().S(`</a>
122 </div>
123 <div class="col-md text-md-end">
124 <small>`)
125//line templates/gitlist.qtpl:26
126 if !r.Public {
127//line templates/gitlist.qtpl:26
128 qw422016.N().S(`private`)
129//line templates/gitlist.qtpl:26
130 }
131//line templates/gitlist.qtpl:26
132 qw422016.N().S(`</small>
133 </div>
134 </div>
135 </hr>
136 <p>`)
137//line templates/gitlist.qtpl:30
138 qw422016.E().S(r.Description)
139//line templates/gitlist.qtpl:30
140 qw422016.N().S(`</p>
141 <p>
142 <a href="/`)
143//line templates/gitlist.qtpl:32
144 qw422016.E().S(r.Name)
145//line templates/gitlist.qtpl:32
146 qw422016.N().S(`/log/`)
147//line templates/gitlist.qtpl:32
148 qw422016.E().S(r.Ref)
149//line templates/gitlist.qtpl:32
150 qw422016.N().S(`/">log</a>
151 <a href="/`)
152//line templates/gitlist.qtpl:33
153 qw422016.E().S(r.Name)
154//line templates/gitlist.qtpl:33
155 qw422016.N().S(`/tree/`)
156//line templates/gitlist.qtpl:33
157 qw422016.E().S(r.Ref)
158//line templates/gitlist.qtpl:33
159 qw422016.N().S(`/">tree</a>
160 <a href="/`)
161//line templates/gitlist.qtpl:34
162 qw422016.E().S(r.Name)
163//line templates/gitlist.qtpl:34
164 qw422016.N().S(`/refs/">refs</a>
165 </p>
166 </div>
167 `)
168//line templates/gitlist.qtpl:37
169 }
170//line templates/gitlist.qtpl:37
171 qw422016.N().S(`
172 </div>
173 </div>
174 <div id="about" class="col-md-4 order-first order-md-last">
175 `)
176//line templates/gitlist.qtpl:41
177 qw422016.N().Z(p.About)
178//line templates/gitlist.qtpl:41
179 qw422016.N().S(`
180 <div class="alert alert-warning text-center" role="alert">
181 This project is under development, things may be broken or incomplete.
182 </div>
183 </div>
184</div>
185`)
186//line templates/gitlist.qtpl:47
187}
188
189//line templates/gitlist.qtpl:47
190func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) {
191//line templates/gitlist.qtpl:47
192 qw422016 := qt422016.AcquireWriter(qq422016)
193//line templates/gitlist.qtpl:47
194 p.StreamContent(qw422016, ctx)
195//line templates/gitlist.qtpl:47
196 qt422016.ReleaseWriter(qw422016)
197//line templates/gitlist.qtpl:47
198}
199
200//line templates/gitlist.qtpl:47
201func (p *GitListPage) Content(ctx context.Context) string {
202//line templates/gitlist.qtpl:47
203 qb422016 := qt422016.AcquireByteBuffer()
204//line templates/gitlist.qtpl:47
205 p.WriteContent(qb422016, ctx)
206//line templates/gitlist.qtpl:47
207 qs422016 := string(qb422016.B)
208//line templates/gitlist.qtpl:47
209 qt422016.ReleaseByteBuffer(qb422016)
210//line templates/gitlist.qtpl:47
211 return qs422016
212//line templates/gitlist.qtpl:47
213}
214
215//line templates/gitlist.qtpl:49
216func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) {
217//line templates/gitlist.qtpl:49
218 qw422016.N().S(`
219`)
220//line templates/gitlist.qtpl:50
221}
222
223//line templates/gitlist.qtpl:50
224func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) {
225//line templates/gitlist.qtpl:50
226 qw422016 := qt422016.AcquireWriter(qq422016)
227//line templates/gitlist.qtpl:50
228 p.StreamScript(qw422016, ctx)
229//line templates/gitlist.qtpl:50
230 qt422016.ReleaseWriter(qw422016)
231//line templates/gitlist.qtpl:50
232}
233
234//line templates/gitlist.qtpl:50
235func (p *GitListPage) Script(ctx context.Context) string {
236//line templates/gitlist.qtpl:50
237 qb422016 := qt422016.AcquireByteBuffer()
238//line templates/gitlist.qtpl:50
239 p.WriteScript(qb422016, ctx)
240//line templates/gitlist.qtpl:50
241 qs422016 := string(qb422016.B)
242//line templates/gitlist.qtpl:50
243 qt422016.ReleaseByteBuffer(qb422016)
244//line templates/gitlist.qtpl:50
245 return qs422016
246//line templates/gitlist.qtpl:50
247}