2021-09-07 19:39:22 +00:00
|
|
|
// Code generated by qtc from "footer.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:1
|
2021-09-07 19:39:22 +00:00
|
|
|
package tpl
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:1
|
2022-06-27 10:12:16 +00:00
|
|
|
import (
|
2022-07-06 08:46:01 +00:00
|
|
|
"net/http"
|
2022-07-08 08:26:13 +00:00
|
|
|
|
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/app/vmalert/utils"
|
2022-06-27 10:12:16 +00:00
|
|
|
)
|
|
|
|
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
2021-09-07 19:39:22 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
2021-09-07 19:39:22 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
2022-07-06 08:46:01 +00:00
|
|
|
func StreamFooter(qw422016 *qt422016.Writer, r *http.Request) {
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
2022-06-27 10:12:16 +00:00
|
|
|
qw422016.N().S(`
|
2022-07-08 08:26:13 +00:00
|
|
|
`)
|
2022-07-06 08:46:01 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:9
|
2022-07-08 08:26:13 +00:00
|
|
|
prefix := utils.Prefix(r.URL.Path)
|
2022-06-27 10:12:16 +00:00
|
|
|
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:9
|
2021-09-07 19:39:22 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</main>
|
2022-06-27 10:12:16 +00:00
|
|
|
<script src="`)
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:11
|
2022-07-06 08:46:01 +00:00
|
|
|
qw422016.E().S(prefix)
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:11
|
2022-07-06 08:46:01 +00:00
|
|
|
qw422016.N().S(`static/js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
2022-06-27 10:12:16 +00:00
|
|
|
<script src="`)
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:12
|
2022-07-06 08:46:01 +00:00
|
|
|
qw422016.E().S(prefix)
|
2022-07-08 08:26:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:12
|
2022-07-06 08:46:01 +00:00
|
|
|
qw422016.N().S(`static/js/bootstrap.bundle.min.js" type="text/javascript"></script>
|
2023-05-10 12:38:13 +00:00
|
|
|
<script src="`)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:13
|
|
|
|
qw422016.E().S(prefix)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:13
|
|
|
|
qw422016.N().S(`static/js/custom.js" type="text/javascript"></script>
|
2021-09-07 19:39:22 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
`)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|
|
|
|
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2022-07-06 08:46:01 +00:00
|
|
|
func WriteFooter(qq422016 qtio422016.Writer, r *http.Request) {
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2022-07-06 08:46:01 +00:00
|
|
|
StreamFooter(qw422016, r)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|
|
|
|
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2022-07-06 08:46:01 +00:00
|
|
|
func Footer(r *http.Request) string {
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2022-07-06 08:46:01 +00:00
|
|
|
WriteFooter(qb422016, r)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
return qs422016
|
2023-05-10 12:38:13 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|