1[% USE Number.Format %] 2<table id="data-table" class="table table-bordered table-condensed table-hover" width="100%" cellspacing="0"> 3 <thead> 4 <tr> 5 <th class="nd_center-cell">Subnet</th> 6 <th class="nd_center-cell">Size</th> 7 <th class="nd_center-cell">Number of Active Nodes</th> 8 <th class="nd_center-cell">Percent Utilization</th> 9 </tr> 10 </thead> 11 <tbody> 12 [% FOREACH row IN results %] 13 <tr> 14 <td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') | none %]?subnet=[% row.subnet | uri %]&daterange=[% params.daterange | uri %]&age_invert=[% params.age_invert | uri %]&limit=[% row.subnet_size | uri %]"> 15 [% row.subnet | html_entity %]</a></td> 16 <td class="nd_center-cell">[% row.subnet_size | format_number %]</td> 17 <td class="nd_center-cell">[% row.active | format_number %]</td> 18 <td class="nd_center-cell">[% row.percent | html_entity %]</td> 19 </tr> 20 [% END %] 21 </tbody> 22</table> 23 24<script> 25$(document).ready(function() { 26 $('#data-table').dataTable({ 27 "order": [[ 3, 'desc' ]], 28[% INCLUDE 'ajax/datatabledefaults.tt' -%] 29 } ); 30} ); 31</script> 32 33