// Code generated by qtc from "footer.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line app/vmalert/tpl/footer.qtpl:1 package tpl //line app/vmalert/tpl/footer.qtpl:1 import ( "net/http" "strings" ) //line app/vmalert/tpl/footer.qtpl:7 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line app/vmalert/tpl/footer.qtpl:7 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line app/vmalert/tpl/footer.qtpl:7 func StreamFooter(qw422016 *qt422016.Writer, r *http.Request) { //line app/vmalert/tpl/footer.qtpl:7 qw422016.N().S(` `) //line app/vmalert/tpl/footer.qtpl:9 prefix := "/vmalert/" if strings.HasPrefix(r.URL.Path, prefix) { prefix = "" } //line app/vmalert/tpl/footer.qtpl:13 qw422016.N().S(` `) //line app/vmalert/tpl/footer.qtpl:48 } //line app/vmalert/tpl/footer.qtpl:48 func WriteFooter(qq422016 qtio422016.Writer, r *http.Request) { //line app/vmalert/tpl/footer.qtpl:48 qw422016 := qt422016.AcquireWriter(qq422016) //line app/vmalert/tpl/footer.qtpl:48 StreamFooter(qw422016, r) //line app/vmalert/tpl/footer.qtpl:48 qt422016.ReleaseWriter(qw422016) //line app/vmalert/tpl/footer.qtpl:48 } //line app/vmalert/tpl/footer.qtpl:48 func Footer(r *http.Request) string { //line app/vmalert/tpl/footer.qtpl:48 qb422016 := qt422016.AcquireByteBuffer() //line app/vmalert/tpl/footer.qtpl:48 WriteFooter(qb422016, r) //line app/vmalert/tpl/footer.qtpl:48 qs422016 := string(qb422016.B) //line app/vmalert/tpl/footer.qtpl:48 qt422016.ReleaseByteBuffer(qb422016) //line app/vmalert/tpl/footer.qtpl:48 return qs422016 //line app/vmalert/tpl/footer.qtpl:48 }