// Code generated by qtc from "header.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line tpl/header.qtpl:1
package tpl
//line tpl/header.qtpl:1
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line tpl/header.qtpl:1
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line tpl/header.qtpl:1
func StreamHeader(qw422016 *qt422016.Writer, title string, pages []NavItem) {
//line tpl/header.qtpl:1
qw422016.N().S(`
vmalert`)
//line tpl/header.qtpl:5
if title != "" {
//line tpl/header.qtpl:5
qw422016.N().S(` - `)
//line tpl/header.qtpl:5
qw422016.E().S(title)
//line tpl/header.qtpl:5
}
//line tpl/header.qtpl:5
qw422016.N().S(`
`)
//line tpl/header.qtpl:36
StreamPrintNavItems(qw422016, title, pages)
//line tpl/header.qtpl:36
qw422016.N().S(`
`)
//line tpl/header.qtpl:38
}
//line tpl/header.qtpl:38
func WriteHeader(qq422016 qtio422016.Writer, title string, pages []NavItem) {
//line tpl/header.qtpl:38
qw422016 := qt422016.AcquireWriter(qq422016)
//line tpl/header.qtpl:38
StreamHeader(qw422016, title, pages)
//line tpl/header.qtpl:38
qt422016.ReleaseWriter(qw422016)
//line tpl/header.qtpl:38
}
//line tpl/header.qtpl:38
func Header(title string, pages []NavItem) string {
//line tpl/header.qtpl:38
qb422016 := qt422016.AcquireByteBuffer()
//line tpl/header.qtpl:38
WriteHeader(qb422016, title, pages)
//line tpl/header.qtpl:38
qs422016 := string(qb422016.B)
//line tpl/header.qtpl:38
qt422016.ReleaseByteBuffer(qb422016)
//line tpl/header.qtpl:38
return qs422016
//line tpl/header.qtpl:38
}