cerrado @ 3784181e4fad3c947dfa95081d8a0b34f5be12d4

  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        <h4>
112          <a href="/`)
113//line templates/gitlist.qtpl:22
114		qw422016.E().S(r.Name)
115//line templates/gitlist.qtpl:22
116		qw422016.N().S(`/">`)
117//line templates/gitlist.qtpl:22
118		qw422016.E().S(r.Name)
119//line templates/gitlist.qtpl:22
120		qw422016.N().S(`</a>
121        </h4>
122        </hr>
123        <p>`)
124//line templates/gitlist.qtpl:25
125		qw422016.E().S(r.Description)
126//line templates/gitlist.qtpl:25
127		qw422016.N().S(`</p>
128        <p>
129          <a href="/`)
130//line templates/gitlist.qtpl:27
131		qw422016.E().S(r.Name)
132//line templates/gitlist.qtpl:27
133		qw422016.N().S(`/log/`)
134//line templates/gitlist.qtpl:27
135		qw422016.E().S(r.Ref)
136//line templates/gitlist.qtpl:27
137		qw422016.N().S(`/">log</a>
138          <a href="/`)
139//line templates/gitlist.qtpl:28
140		qw422016.E().S(r.Name)
141//line templates/gitlist.qtpl:28
142		qw422016.N().S(`/tree/`)
143//line templates/gitlist.qtpl:28
144		qw422016.E().S(r.Ref)
145//line templates/gitlist.qtpl:28
146		qw422016.N().S(`/">tree</a>
147          <a href="/`)
148//line templates/gitlist.qtpl:29
149		qw422016.E().S(r.Name)
150//line templates/gitlist.qtpl:29
151		qw422016.N().S(`/refs/">refs</a>
152        </p>
153      </div>
154      `)
155//line templates/gitlist.qtpl:32
156	}
157//line templates/gitlist.qtpl:32
158	qw422016.N().S(`
159    </div>
160  </div>
161  <div id="about" class="col-md-4 order-first order-md-last">
162    `)
163//line templates/gitlist.qtpl:36
164	qw422016.N().Z(p.About)
165//line templates/gitlist.qtpl:36
166	qw422016.N().S(`
167    <div class="alert alert-warning text-center" role="alert">
168        This project is under development, things may be broken or incomplete.
169    </div>
170  </div>
171</div>
172`)
173//line templates/gitlist.qtpl:42
174}
175
176//line templates/gitlist.qtpl:42
177func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) {
178//line templates/gitlist.qtpl:42
179	qw422016 := qt422016.AcquireWriter(qq422016)
180//line templates/gitlist.qtpl:42
181	p.StreamContent(qw422016, ctx)
182//line templates/gitlist.qtpl:42
183	qt422016.ReleaseWriter(qw422016)
184//line templates/gitlist.qtpl:42
185}
186
187//line templates/gitlist.qtpl:42
188func (p *GitListPage) Content(ctx context.Context) string {
189//line templates/gitlist.qtpl:42
190	qb422016 := qt422016.AcquireByteBuffer()
191//line templates/gitlist.qtpl:42
192	p.WriteContent(qb422016, ctx)
193//line templates/gitlist.qtpl:42
194	qs422016 := string(qb422016.B)
195//line templates/gitlist.qtpl:42
196	qt422016.ReleaseByteBuffer(qb422016)
197//line templates/gitlist.qtpl:42
198	return qs422016
199//line templates/gitlist.qtpl:42
200}
201
202//line templates/gitlist.qtpl:44
203func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) {
204//line templates/gitlist.qtpl:44
205	qw422016.N().S(`
206`)
207//line templates/gitlist.qtpl:45
208}
209
210//line templates/gitlist.qtpl:45
211func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) {
212//line templates/gitlist.qtpl:45
213	qw422016 := qt422016.AcquireWriter(qq422016)
214//line templates/gitlist.qtpl:45
215	p.StreamScript(qw422016, ctx)
216//line templates/gitlist.qtpl:45
217	qt422016.ReleaseWriter(qw422016)
218//line templates/gitlist.qtpl:45
219}
220
221//line templates/gitlist.qtpl:45
222func (p *GitListPage) Script(ctx context.Context) string {
223//line templates/gitlist.qtpl:45
224	qb422016 := qt422016.AcquireByteBuffer()
225//line templates/gitlist.qtpl:45
226	p.WriteScript(qb422016, ctx)
227//line templates/gitlist.qtpl:45
228	qs422016 := string(qb422016.B)
229//line templates/gitlist.qtpl:45
230	qt422016.ReleaseByteBuffer(qb422016)
231//line templates/gitlist.qtpl:45
232	return qs422016
233//line templates/gitlist.qtpl:45
234}