1[% IF NOT results.size %] 2<div class="span4 alert alert-info">No significant events to report.</div> 3[% ELSE %] 4<table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0"> 5 <thead> 6 <tr> 7 <th class="nd_center-cell">Poller Host</th> 8 <th class="nd_center-cell">Device</th> 9 <th class="nd_center-cell">Device DNS</th> 10 <th class="nd_center-cell">Failed Connections</th> 11 <th class="nd_center-cell">Last Retry</th> 12 <th class="nd_center-cell">Try Again</th> 13 </tr> 14 </thead> 15 <tbody> 16 [% FOREACH row IN results %] 17 <tr> 18 <td class="nd_center-cell">[% row.backend | html_entity %]</td> 19 <td class="nd_center-cell"><a class="nd_linkcell" 20 href="[% uri_for('/search') | none %]?tab=node&q=[% row.device | uri %]">[% row.device | html_entity %]</a></td> 21 <td class="nd_center-cell">[% row.dns | html_entity %]</td> 22 <td class="nd_center-cell">[% row.deferrals | html_entity %]</td> 23 <td class="nd_center-cell">[% row.last_defer | html_entity %]</td> 24 <td class="nd_center-cell"> 25 <input data-form="del" name="backend" type="hidden" value="[% row.backend | html_entity %]"> 26 <input data-form="del" name="device" type="hidden" value="[% row.device | html_entity %]"> 27 <button class="btn nd_adminbutton" name="del" type="submit"> 28 <i class="icon-repeat text-success"></i> 29 </button> 30 </td> 31 </tr> 32 [% END %] 33 </tbody> 34</table> 35[% END %] 36 37<script> 38$(document).ready(function() { 39 $('#data-table').dataTable({ 40[% INCLUDE 'ajax/datatabledefaults.tt' -%] 41 } ); 42} ); 43</script> 44