about summary refs log tree commit diff
path: root/packages/dnsmasq-leases-html/templates/index.html
blob: 913a0c9dbc1a19f685d60de003f2cc3349798672 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Leases assigned by dnsmasq</title>
  <style type="text/css">
    body {
      margin: auto;
      width: 70%;
      font-family: monospace;
      font-size: 16px;
    }
    .center {
      margin-left: auto;
      margin-right: auto;
    }
    td, th {
      padding-left: 1em;
      padding-right: 1em;
      padding-top: .5em;
      padding-bottom: .5em;
    }
    td:first-child, th:first-child {
      padding-left: .25em;
    }
    td:last-child, th:last-child {
      padding-right: .25em;
    }
    th {
      padding-top: 1em;
      text-align: left;
    }
    tr:nth-child(even) {
      background: #eee;
    }
    form {
      display: inline;
    }
  </style>
</head>

<body>
  <table>
    <tr>
      <th>IP address</th>
      <th>MAC address</th>
      <th>Hostname</th>
      <th>Expire</th>
    </tr>
    {% for lease in leases %}
    <tr>
      <td>{{ lease.IP }}</td>
      <td>{{ lease.MAC }}</td>
      <td>{{ lease.hostname }}</td>
      <td>{{ lease.expire }}</td>
    </tr>
    {% endfor %}
  </table>
</body>
</html>