// Code generated by qtc from "gitlist.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/gitlist.qtpl:1 package templates //line templates/gitlist.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/service" //line templates/gitlist.qtpl:2 import "context" //line templates/gitlist.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/gitlist.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/gitlist.qtpl:5 type GitListPage struct { Respositories []*service.Repository About []byte } //line templates/gitlist.qtpl:11 func (p *GitListPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:11 qw422016.N().S(`Git | List`) //line templates/gitlist.qtpl:11 } //line templates/gitlist.qtpl:11 func (p *GitListPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:11 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:11 p.StreamTitle(qw422016, ctx) //line templates/gitlist.qtpl:11 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:11 } //line templates/gitlist.qtpl:11 func (p *GitListPage) Title(ctx context.Context) string { //line templates/gitlist.qtpl:11 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:11 p.WriteTitle(qb422016, ctx) //line templates/gitlist.qtpl:11 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:11 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:11 return qs422016 //line templates/gitlist.qtpl:11 } //line templates/gitlist.qtpl:13 func (p *GitListPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:13 StreamNavbar(qw422016, ctx, Git) //line templates/gitlist.qtpl:13 } //line templates/gitlist.qtpl:13 func (p *GitListPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:13 p.StreamNavbar(qw422016, ctx) //line templates/gitlist.qtpl:13 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:13 } //line templates/gitlist.qtpl:13 func (p *GitListPage) Navbar(ctx context.Context) string { //line templates/gitlist.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:13 p.WriteNavbar(qb422016, ctx) //line templates/gitlist.qtpl:13 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:13 return qs422016 //line templates/gitlist.qtpl:13 } //line templates/gitlist.qtpl:15 func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:15 qw422016.N().S(`
`) //line templates/gitlist.qtpl:19 for _, r := range p.Respositories { //line templates/gitlist.qtpl:19 qw422016.N().S(`

`) //line templates/gitlist.qtpl:22 qw422016.E().S(r.Name) //line templates/gitlist.qtpl:22 qw422016.N().S(`

`) //line templates/gitlist.qtpl:25 qw422016.E().S(r.Description) //line templates/gitlist.qtpl:25 qw422016.N().S(`

log tree refs

`) //line templates/gitlist.qtpl:32 } //line templates/gitlist.qtpl:32 qw422016.N().S(`
`) //line templates/gitlist.qtpl:36 qw422016.N().Z(p.About) //line templates/gitlist.qtpl:36 qw422016.N().S(`
`) //line templates/gitlist.qtpl:42 } //line templates/gitlist.qtpl:42 func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:42 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:42 p.StreamContent(qw422016, ctx) //line templates/gitlist.qtpl:42 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:42 } //line templates/gitlist.qtpl:42 func (p *GitListPage) Content(ctx context.Context) string { //line templates/gitlist.qtpl:42 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:42 p.WriteContent(qb422016, ctx) //line templates/gitlist.qtpl:42 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:42 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:42 return qs422016 //line templates/gitlist.qtpl:42 } //line templates/gitlist.qtpl:44 func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:44 qw422016.N().S(` `) //line templates/gitlist.qtpl:45 } //line templates/gitlist.qtpl:45 func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:45 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:45 p.StreamScript(qw422016, ctx) //line templates/gitlist.qtpl:45 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:45 } //line templates/gitlist.qtpl:45 func (p *GitListPage) Script(ctx context.Context) string { //line templates/gitlist.qtpl:45 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:45 p.WriteScript(qb422016, ctx) //line templates/gitlist.qtpl:45 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:45 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:45 return qs422016 //line templates/gitlist.qtpl:45 }