// Code generated by qtc from "navbar.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/navbar.qtpl:1 package templates //line templates/navbar.qtpl:1 import "context" //line templates/navbar.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/navbar.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/navbar.qtpl:4 type Selection int const ( Git Selection = iota List About Config Login ) //line templates/navbar.qtpl:15 type GitSelection int const ( Readme GitSelection = iota Log Summary Refs Tree ) //line templates/navbar.qtpl:25 func streaminsertIfEqual(qw422016 *qt422016.Writer, s, d any) { //line templates/navbar.qtpl:25 if s == d { //line templates/navbar.qtpl:25 qw422016.N().S(` selected`) //line templates/navbar.qtpl:25 } //line templates/navbar.qtpl:25 } //line templates/navbar.qtpl:25 func writeinsertIfEqual(qq422016 qtio422016.Writer, s, d any) { //line templates/navbar.qtpl:25 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/navbar.qtpl:25 streaminsertIfEqual(qw422016, s, d) //line templates/navbar.qtpl:25 qt422016.ReleaseWriter(qw422016) //line templates/navbar.qtpl:25 } //line templates/navbar.qtpl:25 func insertIfEqual(s, d any) string { //line templates/navbar.qtpl:25 qb422016 := qt422016.AcquireByteBuffer() //line templates/navbar.qtpl:25 writeinsertIfEqual(qb422016, s, d) //line templates/navbar.qtpl:25 qs422016 := string(qb422016.B) //line templates/navbar.qtpl:25 qt422016.ReleaseByteBuffer(qb422016) //line templates/navbar.qtpl:25 return qs422016 //line templates/navbar.qtpl:25 } //line templates/navbar.qtpl:27 func StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context, s Selection) { //line templates/navbar.qtpl:27 qw422016.N().S(` `) //line templates/navbar.qtpl:50 } //line templates/navbar.qtpl:50 func WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context, s Selection) { //line templates/navbar.qtpl:50 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/navbar.qtpl:50 StreamNavbar(qw422016, ctx, s) //line templates/navbar.qtpl:50 qt422016.ReleaseWriter(qw422016) //line templates/navbar.qtpl:50 } //line templates/navbar.qtpl:50 func Navbar(ctx context.Context, s Selection) string { //line templates/navbar.qtpl:50 qb422016 := qt422016.AcquireByteBuffer() //line templates/navbar.qtpl:50 WriteNavbar(qb422016, ctx, s) //line templates/navbar.qtpl:50 qs422016 := string(qb422016.B) //line templates/navbar.qtpl:50 qt422016.ReleaseByteBuffer(qb422016) //line templates/navbar.qtpl:50 return qs422016 //line templates/navbar.qtpl:50 } //line templates/navbar.qtpl:52 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { //line templates/navbar.qtpl:52 qw422016.N().S(`

`) //line templates/navbar.qtpl:54 qw422016.E().S(name) //line templates/navbar.qtpl:54 qw422016.N().S(` `) //line templates/navbar.qtpl:54 if ref != "" && (s == Log || s == Tree) { //line templates/navbar.qtpl:54 qw422016.N().S(`@ `) //line templates/navbar.qtpl:54 qw422016.E().S(ref) //line templates/navbar.qtpl:54 } //line templates/navbar.qtpl:54 qw422016.N().S(`

`) //line templates/navbar.qtpl:75 } //line templates/navbar.qtpl:75 func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) { //line templates/navbar.qtpl:75 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/navbar.qtpl:75 StreamGitItemNav(qw422016, name, ref, s) //line templates/navbar.qtpl:75 qt422016.ReleaseWriter(qw422016) //line templates/navbar.qtpl:75 } //line templates/navbar.qtpl:75 func GitItemNav(name, ref string, s GitSelection) string { //line templates/navbar.qtpl:75 qb422016 := qt422016.AcquireByteBuffer() //line templates/navbar.qtpl:75 WriteGitItemNav(qb422016, name, ref, s) //line templates/navbar.qtpl:75 qs422016 := string(qb422016.B) //line templates/navbar.qtpl:75 qt422016.ReleaseByteBuffer(qb422016) //line templates/navbar.qtpl:75 return qs422016 //line templates/navbar.qtpl:75 }