mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
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).
31 lines
806 B
HTML
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>
|