mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-30 07:40:06 +01:00
21f022e5f0
New UI pages: / - welcome page with API handlers list; /groups - list of all rules per group; /alerts - list of all active alerts; /groupID/alertID/status - status of the active alert;
26 lines
690 B
Plaintext
26 lines
690 B
Plaintext
{% code
|
|
type NavItem struct {
|
|
Name string
|
|
Url string
|
|
}
|
|
%}
|
|
|
|
{% func PrintNavItems(current string, items []NavItem) %}
|
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
|
<div class="container-fluid">
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
|
{% for _, item := range items %}
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if current == item.Name %} active{% endif %}" href="{%s item.Url %}">
|
|
{%s item.Name %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
{% endfunc %}
|
|
|
|
|