cerrado @ d0e0c1eb99303e1000140d4b98c610077278dc42

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