mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
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:
@@ -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
Reference in New Issue
Block a user