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
|
2021-09-07 19:39:22 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:1
|
2021-09-07 19:39:22 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:1
|
2021-09-07 19:39:22 +00:00
|
|
|
func StreamFooter(qw422016 *qt422016.Writer) {
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:1
|
2021-09-07 19:39:22 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</main>
|
2022-05-30 23:55:28 +00:00
|
|
|
<script src="static/js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
|
|
|
<script src="static/js/bootstrap.bundle.min.js" type="text/javascript"></script>
|
2021-09-07 19:39:22 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
function expandAll() {
|
|
|
|
$('.collapse').addClass('show');
|
|
|
|
}
|
|
|
|
function collapseAll() {
|
|
|
|
$('.collapse').removeClass('show');
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
// prevent collapse logic on link click
|
|
|
|
$(".group-heading a").click(function(e) {
|
|
|
|
e.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".group-heading").click(function(e) {
|
|
|
|
let target = $(this).attr('data-bs-target');
|
2022-05-30 23:55:28 +00:00
|
|
|
let el = $("#"+target);
|
2021-09-07 19:39:22 +00:00
|
|
|
new bootstrap.Collapse(el, {
|
|
|
|
toggle: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var hash = window.location.hash.substr(1);
|
2022-05-30 23:55:28 +00:00
|
|
|
let group = $("#"+hash);
|
2021-09-07 19:39:22 +00:00
|
|
|
if (group.length > 0) {
|
|
|
|
group.click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
`)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
func WriteFooter(qq422016 qtio422016.Writer) {
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
StreamFooter(qw422016)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
func Footer() string {
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
WriteFooter(qb422016)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
return qs422016
|
2022-05-04 17:26:38 +00:00
|
|
|
//line app/vmalert/tpl/footer.qtpl:36
|
2021-09-07 19:39:22 +00:00
|
|
|
}
|