Files
karma/assets/templates/summary.html
Łukasz Mierzwa f1e90e054d Rewrite clientside-haml-js templates using underscore
Drop haml templates in favor of underscore. Haml templates are harder to maintain and require extra dependencies, we already have underscore.js included and it provides a fast templating engine. Rewrite all client side templates using it.
Performance with underscore is pretty much the same as with haml (with 10k alerts).
2017-04-10 11:38:34 -07:00

31 lines
806 B
HTML

<script type="application/json" id="breakdown">
<div class="popover">
<div class="arrow"></div>
<h1 class="popover-title text-center"></h1>
<div class="popover-content" id="breakdown-content"></div>
</div>
</script>
<script type="application/json" id="breakdown-content">
<% if(tags.length > 0) { %>
<table class="table">
<% _.each(tags, function(tag) { %>
<tr>
<td>
<span class="label <%= tag.cls %>" style="<%= tag.style %>">
<%- tag.name %>
</span>
</td>
<td align="center">
<span class="breakdown-badge">
<%- tag.val %>
</span>
</td>
</tr>
<% }) %>
</table>
<% } else { %>
<p class="text-muted">Empty</p>
<% } %>
</script>