mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
51196739af
* vmalert: expand rule groups on anchor click before, anchor click was only updating the URL. To expand the group, user had to click on rule's block. Now, group will toggle automatically. * vmalert: allow filtering group in web UI The new filter allows to filter groups and rules within groups by: errors only or noMatch only. The filtering supposed to help navigating big numbers of groups/rules. Filtering is reflected in URL, so can be shared as a link. Signed-off-by: hagen1778 <roman@victoriametrics.com>
83 lines
2.3 KiB
Go
83 lines
2.3 KiB
Go
// 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"
|
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/app/vmalert/utils"
|
|
)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
|
func StreamFooter(qw422016 *qt422016.Writer, r *http.Request) {
|
|
//line app/vmalert/tpl/footer.qtpl:8
|
|
qw422016.N().S(`
|
|
`)
|
|
//line app/vmalert/tpl/footer.qtpl:9
|
|
prefix := utils.Prefix(r.URL.Path)
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:9
|
|
qw422016.N().S(`
|
|
</main>
|
|
<script src="`)
|
|
//line app/vmalert/tpl/footer.qtpl:11
|
|
qw422016.E().S(prefix)
|
|
//line app/vmalert/tpl/footer.qtpl:11
|
|
qw422016.N().S(`static/js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
|
<script src="`)
|
|
//line app/vmalert/tpl/footer.qtpl:12
|
|
qw422016.E().S(prefix)
|
|
//line app/vmalert/tpl/footer.qtpl:12
|
|
qw422016.N().S(`static/js/bootstrap.bundle.min.js" type="text/javascript"></script>
|
|
<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>
|
|
</body>
|
|
</html>
|
|
`)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
}
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
func WriteFooter(qq422016 qtio422016.Writer, r *http.Request) {
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
StreamFooter(qw422016, r)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
}
|
|
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
func Footer(r *http.Request) string {
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
WriteFooter(qb422016, r)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
qs422016 := string(qb422016.B)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
return qs422016
|
|
//line app/vmalert/tpl/footer.qtpl:16
|
|
}
|