cerrado @ 78af329f2c7bc1739bcd36baf45ab95aaff43434

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