format numbers in subnet utilization report

This commit is contained in:
Eric A. Miller
2014-02-25 21:54:00 -05:00
parent bae49477e8
commit b5db95e951

View File

@@ -1,6 +1,7 @@
[% IF NOT results.has_rows %]
<div class="span2 alert alert-info">No matching records.</div>
[% ELSE %]
[% USE Number.Format %]
<table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
@@ -15,8 +16,8 @@
<tr>
<td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') %]?subnet=[% row.subnet | uri %]&daterange=[% daterange | uri %]&limit=[% row.subnet_size | uri %]">
[% row.subnet | html_entity %]</a></td>
<td class="nd_center-cell">[% row.subnet_size | html_entity %]</td>
<td class="nd_center-cell">[% row.active | html_entity %]</td>
<td class="nd_center-cell">[% row.subnet_size | format_number %]</td>
<td class="nd_center-cell">[% row.active | format_number %]</td>
<td class="nd_center-cell">[% row.percent | html_entity %]</td>
</tr>
[% END %]