Show group badge only if there are multiple alerts

This commit is contained in:
Łukasz Mierzwa
2017-06-06 22:02:30 -07:00
parent dd8c6f13af
commit 291256f48f
2 changed files with 3 additions and 1 deletions

View File

@@ -8,9 +8,11 @@
<i class="fa fa-link"/>
</a>
</span>
<% if (group.alerts.length > 1) { %>
<span class="badge pull-right">
<%- group.alerts.length %>
</span>
<% } %>
<div class="panel-title">
<% if (Object.keys(group.labels).length > 0) { %>
<% _.each(Alerts.SortMapByKey(group.labels), function(label) { %>

File diff suppressed because one or more lines are too long