cerrado @ 02614b3781f6acdfc6df0e7b07d856b2779c4ac7

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