1[% USE Number.Format %]
2    <div class="row">
3    [% IF stats.day %]
4      <div class="span5 offset1">
5      <h4>Statistics for this installation</h4>
6        <table class="table table-condensed">
7          <thead>
8            <tr>
9              <th>[% stats.device_count | format_number %] devices
10                  with [% stats.device_ip_count | format_number %] IPs
11              </th>
12            </tr>
13          </thead>
14          <tbody>
15            <tr>
16              <th>[% stats.device_port_count | format_number %] interfaces
17                  of which [% stats.device_port_up_count | format_number %] are up
18              </th>
19            </tr>
20            [% IF stats.device_link_count %]
21            <tr>
22              <th>[% stats.device_link_count| format_number %] layer 2 links between devices</th>
23            </tr>
24            [% END %]
25            <tr>
26              <th>[% stats.node_table_count | format_number %] nodes logged, of which [% stats.node_active_count | format_number %] are active</th>
27            </tr>
28            <tr>
29              <th>[% stats.ip_table_count | format_number %] IPs logged, of which [% stats.ip_active_count | format_number %] are active</th>
30            </tr>
31            <tr>
32              <th>Statistics last generated on [% stats.day | html_entity %]</th>
33            </tr>
34          </tbody>
35        </table>
36      </div>
37      <div class="span4 offset1">
38      <h4>Built using Open Source</h4>
39        <table class="table table-condensed">
40          <thead>
41            <tr>
42              <th>Software</th>
43              <th>Version</th>
44            </tr>
45          </thead>
46          <tbody>
47            <tr>
48              <th><b><a href="http://netdisco.org">App::Netdisco</a></b></th>
49              <th>[% stats.netdisco_ver | html_entity %]</th>
50            </tr>
51            <tr>
52              <th><a href="https://github.com/netdisco/snmp-info">SNMP::Info</a></th>
53              <th>[% stats.snmpinfo_ver | html_entity %]</th>
54            </tr>
55            <tr>
56              <th><a href="https://metacpan.org/module/netdisco-db-deploy">DB Schema</a></th>
57              <th>[% stats.schema_ver | html_entity %]</th>
58            </tr>
59            <tr>
60              <th><a href="http://www.postgresql.org">PostgreSQL</a></th>
61              <th>[% stats.pg_ver | html_entity %]</th>
62            </tr>
63            <tr>
64              <th><a href="http://www.perl.org">Perl</a></th>
65              <th>[% stats.perl_ver | html_entity %]</th>
66            </tr>
67          </tbody>
68        </table>
69      </div>
70    [% ELSE %]
71      <div class="span4 alert alert-info">Statistics will be available tomorrow.</div>
72    [% END %]
73    </div>
74