mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +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).
34 lines
941 B
HTML
34 lines
941 B
HTML
<script type="application/json" id="modal-title">
|
|
<button class="close" type="button" data-dismiss="modal">
|
|
<i class="fa fa-close"/>
|
|
</button>
|
|
<div class="label-list label <%= attrs.class %>" style="<%= attrs.style %>">
|
|
<%- attrs.text %>
|
|
</div>
|
|
<span class="badge badge-primary">
|
|
<%- counter %>
|
|
</span>
|
|
</script>
|
|
|
|
<script type="application/json" id="modal-body">
|
|
<table class="table table-striped">
|
|
<caption class="text-center">
|
|
Quick filters
|
|
</caption>
|
|
<tbody>
|
|
<% _.each(hints, function(hint) { %>
|
|
<tr>
|
|
<td class="modal-row-filters">
|
|
<%- hint %>
|
|
</td>
|
|
<td class="modal-row-actions">
|
|
<button class="btn btn-sm btn-primary pull-right modal-button-filter" type="button" data-filter-append-value="<%= hint %>">
|
|
Apply
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<% }) %>
|
|
</tbody>
|
|
</table>
|
|
</script>
|