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