// 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/humanize" //line templates/gitlist.qtpl:2 import "git.gabrielgio.me/cerrado/pkg/service" //line templates/gitlist.qtpl:3 import "context" //line templates/gitlist.qtpl:4 import "strings" //line templates/gitlist.qtpl:6 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/gitlist.qtpl:6 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/gitlist.qtpl:7 type GitListPage struct { Respositories []*service.Repository About []byte } //line templates/gitlist.qtpl:14 func firstLine(text string) string { lines := strings.Split(text, "\n") if len(lines) > 0 { return lines[0] } return "" } //line templates/gitlist.qtpl:23 func (p *GitListPage) StreamTitle(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:23 qw422016.N().S(`Git | List`) //line templates/gitlist.qtpl:23 } //line templates/gitlist.qtpl:23 func (p *GitListPage) WriteTitle(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:23 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:23 p.StreamTitle(qw422016, ctx) //line templates/gitlist.qtpl:23 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:23 } //line templates/gitlist.qtpl:23 func (p *GitListPage) Title(ctx context.Context) string { //line templates/gitlist.qtpl:23 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:23 p.WriteTitle(qb422016, ctx) //line templates/gitlist.qtpl:23 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:23 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:23 return qs422016 //line templates/gitlist.qtpl:23 } //line templates/gitlist.qtpl:25 func (p *GitListPage) StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:25 StreamNavbar(qw422016, ctx, Git) //line templates/gitlist.qtpl:25 } //line templates/gitlist.qtpl:25 func (p *GitListPage) WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:25 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gitlist.qtpl:25 p.StreamNavbar(qw422016, ctx) //line templates/gitlist.qtpl:25 qt422016.ReleaseWriter(qw422016) //line templates/gitlist.qtpl:25 } //line templates/gitlist.qtpl:25 func (p *GitListPage) Navbar(ctx context.Context) string { //line templates/gitlist.qtpl:25 qb422016 := qt422016.AcquireByteBuffer() //line templates/gitlist.qtpl:25 p.WriteNavbar(qb422016, ctx) //line templates/gitlist.qtpl:25 qs422016 := string(qb422016.B) //line templates/gitlist.qtpl:25 qt422016.ReleaseByteBuffer(qb422016) //line templates/gitlist.qtpl:25 return qs422016 //line templates/gitlist.qtpl:25 } //line templates/gitlist.qtpl:27 func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Context) { //line templates/gitlist.qtpl:27 qw422016.N().S(`
`) //line templates/gitlist.qtpl:42 qw422016.E().S(r.Description) //line templates/gitlist.qtpl:42 qw422016.N().S(`