// 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 ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/navbar.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/navbar.qtpl:2 type Selection int const ( Git Selection = iota List About Config Login ) //line templates/navbar.qtpl:13 type GitSelection int const ( Readme GitSelection = iota Log Summary Refs Tree ) //line templates/navbar.qtpl:23 func streaminsertIfEqual(qw422016 *qt422016.Writer, s, d any) { //line templates/navbar.qtpl:23 if s == d { //line templates/navbar.qtpl:23 qw422016.N().S(` selected`) //line templates/navbar.qtpl:23 } //line templates/navbar.qtpl:23 } //line templates/navbar.qtpl:23 func writeinsertIfEqual(qq422016 qtio422016.Writer, s, d any) { //line templates/navbar.qtpl:23 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/navbar.qtpl:23 streaminsertIfEqual(qw422016, s, d) //line templates/navbar.qtpl:23 qt422016.ReleaseWriter(qw422016) //line templates/navbar.qtpl:23 } //line templates/navbar.qtpl:23 func insertIfEqual(s, d any) string { //line templates/navbar.qtpl:23 qb422016 := qt422016.AcquireByteBuffer() //line templates/navbar.qtpl:23 writeinsertIfEqual(qb422016, s, d) //line templates/navbar.qtpl:23 qs422016 := string(qb422016.B) //line templates/navbar.qtpl:23 qt422016.ReleaseByteBuffer(qb422016) //line templates/navbar.qtpl:23 return qs422016 //line templates/navbar.qtpl:23 } //line templates/navbar.qtpl:25 func StreamNavbar(qw422016 *qt422016.Writer, s Selection) { //line templates/navbar.qtpl:25 qw422016.N().S(` `) //line templates/navbar.qtpl:42 } //line templates/navbar.qtpl:42 func WriteNavbar(qq422016 qtio422016.Writer, s Selection) { //line templates/navbar.qtpl:42 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/navbar.qtpl:42 StreamNavbar(qw422016, s) //line templates/navbar.qtpl:42 qt422016.ReleaseWriter(qw422016) //line templates/navbar.qtpl:42 } //line templates/navbar.qtpl:42 func Navbar(s Selection) string { //line templates/navbar.qtpl:42 qb422016 := qt422016.AcquireByteBuffer() //line templates/navbar.qtpl:42 WriteNavbar(qb422016, s) //line templates/navbar.qtpl:42 qs422016 := string(qb422016.B) //line templates/navbar.qtpl:42 qt422016.ReleaseByteBuffer(qb422016) //line templates/navbar.qtpl:42 return qs422016 //line templates/navbar.qtpl:42 } //line templates/navbar.qtpl:44 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { //line templates/navbar.qtpl:44 qw422016.N().S(`