cerrado @ f1643ffcbd543cacfe9ab5e46eafdd0c39cd47fd

  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(`/summary">`)
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        <p>
130          <a href="/`)
131//line gitlist.qtpl:26
132		qw422016.E().S(r.Name)
133//line gitlist.qtpl:26
134		qw422016.N().S(`/summary">summary</a>
135          <a href="/`)
136//line gitlist.qtpl:27
137		qw422016.E().S(r.Name)
138//line gitlist.qtpl:27
139		qw422016.N().S(`/log">log</a>
140          <a href="/`)
141//line gitlist.qtpl:28
142		qw422016.E().S(r.Name)
143//line gitlist.qtpl:28
144		qw422016.N().S(`/tree">tree</a>
145        </p>
146      </div>
147      `)
148//line gitlist.qtpl:31
149	}
150//line gitlist.qtpl:31
151	qw422016.N().S(`
152    </div>
153  `)
154//line gitlist.qtpl:33
155}
156
157//line gitlist.qtpl:33
158func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer) {
159//line gitlist.qtpl:33
160	qw422016 := qt422016.AcquireWriter(qq422016)
161//line gitlist.qtpl:33
162	p.StreamContent(qw422016)
163//line gitlist.qtpl:33
164	qt422016.ReleaseWriter(qw422016)
165//line gitlist.qtpl:33
166}
167
168//line gitlist.qtpl:33
169func (p *GitListPage) Content() string {
170//line gitlist.qtpl:33
171	qb422016 := qt422016.AcquireByteBuffer()
172//line gitlist.qtpl:33
173	p.WriteContent(qb422016)
174//line gitlist.qtpl:33
175	qs422016 := string(qb422016.B)
176//line gitlist.qtpl:33
177	qt422016.ReleaseByteBuffer(qb422016)
178//line gitlist.qtpl:33
179	return qs422016
180//line gitlist.qtpl:33
181}
182
183//   </div>
184// </div>
185//
186
187//line gitlist.qtpl:37
188func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer) {
189//line gitlist.qtpl:37
190	qw422016.N().S(`
191`)
192//line gitlist.qtpl:38
193}
194
195//line gitlist.qtpl:38
196func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer) {
197//line gitlist.qtpl:38
198	qw422016 := qt422016.AcquireWriter(qq422016)
199//line gitlist.qtpl:38
200	p.StreamScript(qw422016)
201//line gitlist.qtpl:38
202	qt422016.ReleaseWriter(qw422016)
203//line gitlist.qtpl:38
204}
205
206//line gitlist.qtpl:38
207func (p *GitListPage) Script() string {
208//line gitlist.qtpl:38
209	qb422016 := qt422016.AcquireByteBuffer()
210//line gitlist.qtpl:38
211	p.WriteScript(qb422016)
212//line gitlist.qtpl:38
213	qs422016 := string(qb422016.B)
214//line gitlist.qtpl:38
215	qt422016.ReleaseByteBuffer(qb422016)
216//line gitlist.qtpl:38
217	return qs422016
218//line gitlist.qtpl:38
219}