cerrado @ 2eea4b27109e6f958a31890844e2bb69fbc21a48

  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 class="alert alert-warning text-center" role="alert">
165        This project is under development, things may be broken or incomplete.
166    </div>
167  </div>
168</div>
169`)
170//line templates/gitlist.qtpl:41
171}
172
173//line templates/gitlist.qtpl:41
174func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer) {
175//line templates/gitlist.qtpl:41
176	qw422016 := qt422016.AcquireWriter(qq422016)
177//line templates/gitlist.qtpl:41
178	p.StreamContent(qw422016)
179//line templates/gitlist.qtpl:41
180	qt422016.ReleaseWriter(qw422016)
181//line templates/gitlist.qtpl:41
182}
183
184//line templates/gitlist.qtpl:41
185func (p *GitListPage) Content() string {
186//line templates/gitlist.qtpl:41
187	qb422016 := qt422016.AcquireByteBuffer()
188//line templates/gitlist.qtpl:41
189	p.WriteContent(qb422016)
190//line templates/gitlist.qtpl:41
191	qs422016 := string(qb422016.B)
192//line templates/gitlist.qtpl:41
193	qt422016.ReleaseByteBuffer(qb422016)
194//line templates/gitlist.qtpl:41
195	return qs422016
196//line templates/gitlist.qtpl:41
197}
198
199//line templates/gitlist.qtpl:43
200func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer) {
201//line templates/gitlist.qtpl:43
202	qw422016.N().S(`
203`)
204//line templates/gitlist.qtpl:44
205}
206
207//line templates/gitlist.qtpl:44
208func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer) {
209//line templates/gitlist.qtpl:44
210	qw422016 := qt422016.AcquireWriter(qq422016)
211//line templates/gitlist.qtpl:44
212	p.StreamScript(qw422016)
213//line templates/gitlist.qtpl:44
214	qt422016.ReleaseWriter(qw422016)
215//line templates/gitlist.qtpl:44
216}
217
218//line templates/gitlist.qtpl:44
219func (p *GitListPage) Script() string {
220//line templates/gitlist.qtpl:44
221	qb422016 := qt422016.AcquireByteBuffer()
222//line templates/gitlist.qtpl:44
223	p.WriteScript(qb422016)
224//line templates/gitlist.qtpl:44
225	qs422016 := string(qb422016.B)
226//line templates/gitlist.qtpl:44
227	qt422016.ReleaseByteBuffer(qb422016)
228//line templates/gitlist.qtpl:44
229	return qs422016
230//line templates/gitlist.qtpl:44
231}