Pull links up to labels level

Number of links usually doesn't justify giving it a dedicated row, so let's render it before labels
This commit is contained in:
Łukasz Mierzwa
2017-06-05 21:59:38 -07:00
parent 7ad5e1e18c
commit 5d35cf3529
2 changed files with 12 additions and 12 deletions

View File

@@ -37,6 +37,17 @@
<% } %>
</div>
<% }) %>
<% _.each(alert.links, function(url, text) { %>
<a class="label label-list label-default"
href="<%= url %>"
target="_blank"
title="<%= url %>"
data-toggle="tooltip"
data-placement="top">
<i class="fa fa-external-link"/>
<%- text %>
</a>
<% }) %>
</script>
<script type="application/json" id="alert-group-labels">
@@ -62,17 +73,6 @@
<i class="fa fa-code"/>
</a>
<% } %>
<% _.each(alert.links, function(url, text) { %>
<a class="label label-list label-default"
href="<%= url %>"
target="_blank"
title="<%= url %>"
data-toggle="tooltip"
data-placement="top">
<i class="fa fa-external-link"/>
<%- text %>
</a>
<% }) %>
<% var attrs = Alerts.GetLabelAttrs("@state", alert.state) %>
<%= Templates.Render('buttonLabel', {elem: 'span', attrs: attrs, label: {key: '@state', value: alert.state, text: '@state: ' + alert.state}}) %>
<% var attrs = Alerts.GetLabelAttrs("@receiver", alert.receiver) %>

File diff suppressed because one or more lines are too long