From a09dabc78fda12cb6bc37809cdf6e49c6f3eadef Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Fri, 24 Mar 2023 09:48:43 +0100 Subject: [PATCH] vmalert: add anchor char to Group's link (#4006) This should help users to see that Group's name is clickable and used for anchoring. Signed-off-by: hagen1778 --- app/vmalert/web.qtpl | 2 +- app/vmalert/web.qtpl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmalert/web.qtpl b/app/vmalert/web.qtpl index 80c53c255..cd41ce487 100644 --- a/app/vmalert/web.qtpl +++ b/app/vmalert/web.qtpl @@ -52,7 +52,7 @@ {% for _, g := range groups %}
- {%s g.Name %}{% if g.Type != "prometheus" %} ({%s g.Type %}){% endif %} (every {%f.0 g.Interval %}s) + {%s g.Name %}{% if g.Type != "prometheus" %} ({%s g.Type %}){% endif %} (every {%f.0 g.Interval %}s) # {% if rNotOk[g.ID] > 0 %}{%d rNotOk[g.ID] %} {% endif %} {%d rOk[g.ID] %}

{%s g.File %}

diff --git a/app/vmalert/web.qtpl.go b/app/vmalert/web.qtpl.go index 2a7489371..3cde8a7c7 100644 --- a/app/vmalert/web.qtpl.go +++ b/app/vmalert/web.qtpl.go @@ -227,7 +227,7 @@ func StreamListGroups(qw422016 *qt422016.Writer, r *http.Request, groups []APIGr //line app/vmalert/web.qtpl:55 qw422016.N().FPrec(g.Interval, 0) //line app/vmalert/web.qtpl:55 - qw422016.N().S(`s) + qw422016.N().S(`s) # `) //line app/vmalert/web.qtpl:56 if rNotOk[g.ID] > 0 {