From 4330972277e46a2d157694aaddaac30298bfcc37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 1 Jul 2017 12:53:51 -0700 Subject: [PATCH] Color source buttons based on alert state in each --- assets/templates/alertgroup.html | 8 +++++++- bindata_assetfs.go | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/templates/alertgroup.html b/assets/templates/alertgroup.html index 3f9acba66..250b765f7 100644 --- a/assets/templates/alertgroup.html +++ b/assets/templates/alertgroup.html @@ -66,7 +66,13 @@ <% if (alert.state === "suppressed") { cls_indicator = 'incident-indicator-success' } %>
<% _.each(alert.alertmanager, function(am){ %> - + <% if (am.state === "suppressed") { %> + <% labelCls = "label-success" %> + <% } else if (am.state === "unprocessed") { %> + <% labelCls = "label-default" %> + <% } %> +