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