From e02ac2be3737e4b535ded1ed0bc842d94a86ae68 Mon Sep 17 00:00:00 2001 From: Paul Traylor Date: Mon, 31 Jul 2023 11:59:26 +0900 Subject: [PATCH] Highlight date change in alert list When figuring out a timeline for alerts, it is helpful to have an extra indication showing date changes. --- promgen/templates/promgen/alert_list.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/promgen/templates/promgen/alert_list.html b/promgen/templates/promgen/alert_list.html index 24eba85a3..9c8c491f2 100644 --- a/promgen/templates/promgen/alert_list.html +++ b/promgen/templates/promgen/alert_list.html @@ -24,6 +24,11 @@ Error {% for alert in alert_list %} + {% ifchanged alert.created|date %} + + {{ alert.created|date }} + + {% endifchanged %} {{ alert.created|timezone:TIMEZONE }} {{alert.json.commonLabels.alertname}}