DataTables for admin poller performance report

This commit is contained in:
Eric A. Miller
2014-06-07 14:39:52 -04:00
parent da01b2c7ce
commit 2e6deba1a6

View File

@@ -1,7 +1,7 @@
[% IF results.count == 0 %]
<div class="span3 alert alert-info">The aren't enough jobs to report.</div>
[% ELSE %]
<table class="table table-bordered table-condensed table-hover nd_floatinghead">
<table id="app-data-table" class="table table-bordered table-condensed table-hover" width="100%" cellspacing="0">
<thead>
<tr>
<th class="nd_center-cell">Action</th>
@@ -41,3 +41,15 @@
</table>
[% END %]
<script>
$(document).ready(function() {
$('#app-data-table').dataTable({
"paging": false,
"searching": false,
"info": false,
"order": [[ 2, 'desc' ], [ 5, 'desc' ]],
"pageLength": 50
} );
} );
</script>