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) StreamContent(qw422016 *qt422016.Writer) {
63//line gitlist.qtpl:11
64 qw422016.N().S(`
65<div class="row">
66 <div class="col-md-8 offset-md-2">
67 <div class="event-list">
68 `)
69//line gitlist.qtpl:15
70 for _, r := range p.Respositories {
71//line gitlist.qtpl:15
72 qw422016.N().S(`
73 <div class="event">
74 <h4>
75 <a href="/`)
76//line gitlist.qtpl:18
77 qw422016.E().S(r.Name)
78//line gitlist.qtpl:18
79 qw422016.N().S(`">`)
80//line gitlist.qtpl:18
81 qw422016.E().S(r.Name)
82//line gitlist.qtpl:18
83 qw422016.N().S(`</a>
84 </h4>
85 </hr>
86 <p>`)
87//line gitlist.qtpl:21
88 qw422016.E().S(r.LastCommitMessage)
89//line gitlist.qtpl:21
90 qw422016.N().S(`</p>
91 <p><small>`)
92//line gitlist.qtpl:22
93 qw422016.E().S(r.LastCommitDate)
94//line gitlist.qtpl:22
95 qw422016.N().S(`</small></p>
96 </div>
97 `)
98//line gitlist.qtpl:24
99 }
100//line gitlist.qtpl:24
101 qw422016.N().S(`
102 </div>
103 `)
104//line gitlist.qtpl:26
105}
106
107//line gitlist.qtpl:26
108func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer) {
109//line gitlist.qtpl:26
110 qw422016 := qt422016.AcquireWriter(qq422016)
111//line gitlist.qtpl:26
112 p.StreamContent(qw422016)
113//line gitlist.qtpl:26
114 qt422016.ReleaseWriter(qw422016)
115//line gitlist.qtpl:26
116}
117
118//line gitlist.qtpl:26
119func (p *GitListPage) Content() string {
120//line gitlist.qtpl:26
121 qb422016 := qt422016.AcquireByteBuffer()
122//line gitlist.qtpl:26
123 p.WriteContent(qb422016)
124//line gitlist.qtpl:26
125 qs422016 := string(qb422016.B)
126//line gitlist.qtpl:26
127 qt422016.ReleaseByteBuffer(qb422016)
128//line gitlist.qtpl:26
129 return qs422016
130//line gitlist.qtpl:26
131}
132
133// </div>
134// </div>
135//
136
137//line gitlist.qtpl:30
138func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer) {
139//line gitlist.qtpl:30
140 qw422016.N().S(`
141`)
142//line gitlist.qtpl:31
143}
144
145//line gitlist.qtpl:31
146func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer) {
147//line gitlist.qtpl:31
148 qw422016 := qt422016.AcquireWriter(qq422016)
149//line gitlist.qtpl:31
150 p.StreamScript(qw422016)
151//line gitlist.qtpl:31
152 qt422016.ReleaseWriter(qw422016)
153//line gitlist.qtpl:31
154}
155
156//line gitlist.qtpl:31
157func (p *GitListPage) Script() string {
158//line gitlist.qtpl:31
159 qb422016 := qt422016.AcquireByteBuffer()
160//line gitlist.qtpl:31
161 p.WriteScript(qb422016)
162//line gitlist.qtpl:31
163 qs422016 := string(qb422016.B)
164//line gitlist.qtpl:31
165 qt422016.ReleaseByteBuffer(qb422016)
166//line gitlist.qtpl:31
167 return qs422016
168//line gitlist.qtpl:31
169}