|
|
- <!DOCTYPE html>
- <head>
- <title>DHCP web-viewer</title>
- </head>
- <html>
- <body>
- <a href="/hosts/">отчет по занятым хостам</a>
- <h1>Leases report</h1>
- <br /><br />
- <table border="1">
- <caption>Таблица аренды адресов</caption>
- <tr>
- <th>IP адрес</th>
- <th>Имя хоста</th>
- <th>Mac адрес</th>
- <th>адрес арендован</th>
- </tr>
- %for a in A:
- <tr>
- %for i in a:
- <td>
- %if i == '-':
- <font size="5" color="red" face="Arial">-</font>
- %end
- %if i == '+':
- <font size="5" color="green" face="Arial">+</font>
- %end
- %if not i == '+' and not i == '-':
- {{i}}
- %end
- </td>
- %end
- </tr>
- %end
- </table>
- </body>
- </html>
|