blob: 1998e5fb49d10fa0a8b39412243ef5eef6a7fe59 [file] [log] [blame]
Simon Kelleyfeba5c12004-07-27 20:28:58 +01001<html>
2 <head>
3 <title>DHCP Clients</title>
4 <link rel="stylesheet" href="dhcp.css"/>
5 <meta http-equiv="Refresh" content="2"/>
6 </head>
7 <body>
8 <h1>DHCP Clients <span class="updated">(updated [% updated %])</span></h1>
9 <table cols="7">
10 <tr>
11 <th class="hostname">Hostname</th>
12 <th class="ip_addr">IP Address</th>
13 <th class="ether_addr">Ethernet Address</th>
14 <th class="client_id">DHCP Client ID</th>
15 <th class="status">Status</th>
16 <th class="since">Since</th>
17 <th class="lease">Lease Expires</th>
18 </tr>
19 [% FOREACH host IN hosts %]
20 <tr class="[% IF host.online %]online[% ELSE %]offline[% END %]">
21 <td class="hostname">[% host.hostname %]</td>
22 <td class="ip_addr">[% host.ip_addr %]</td>
23 <td class="ether_addr">[% host.ether_addr %]</td>
24 <td class="client_id">[% host.text_client_id %] ([% host.raw_client_id %])</td>
25 <td class="status">[% IF host.online %]Online[% ELSE %]Offline[% END %]</td>
26 <td class="since">[% host.since %]</td>
27 <td class="lease">[% host.text_lease %]</td>
28 </tr>
29 [% END %]
30 </table>
31 </body>
32</html>