Files
karma/assets/templates/modal.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

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>