mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
Color source buttons based on alert state in each
This commit is contained in:
@@ -66,7 +66,13 @@
|
||||
<% if (alert.state === "suppressed") { cls_indicator = 'incident-indicator-success' } %>
|
||||
<div class="alert-static-elements">
|
||||
<% _.each(alert.alertmanager, function(am){ %>
|
||||
<a class="label label-list label-primary"
|
||||
<% var labelCls = "label-primary" %>
|
||||
<% if (am.state === "suppressed") { %>
|
||||
<% labelCls = "label-success" %>
|
||||
<% } else if (am.state === "unprocessed") { %>
|
||||
<% labelCls = "label-default" %>
|
||||
<% } %>
|
||||
<a class="label label-list <%- labelCls %>"
|
||||
href="<%= am.source %>"
|
||||
target="_blank"
|
||||
title="Go to the alert source"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user