blob: 5e8272a96f295715f5114399749788ccac58b905 (
plain)
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
|
{% extends "basic.html" %}
{% block content %}
<a href="/">Back to homepage</a>
<h2>Account settings</h2>
{% for msg in get_flashed_messages(True) %}
<p class="{{ msg[0] }}">{{ msg[1] }}</p>
{% endfor %}
<h3>Claimed devices</h3>
<table class="devices">
<tr>
<th>MAC</th>
<th>Device name</th>
<th>Visible</th>
<th>Toggle visibility</th>
<th>Delete</th>
</tr>
{% for device in devices %}
<tr>
<td>{{ device.hwaddr }}</td>
<td>{{ device.name }}</td>
{% if device.ignored %}
<td class="invisible">invisible</td>
<td><a href="devices/{{ device.hwaddr }}/show">make visible</a></td>
{% else %}
<td class="visible">visible</td>
<td><a href="devices/{{ device.hwaddr }}/hide">make invisible</a></td>
{% endif %}
<td><a href="devices/{{ device.hwaddr }}/delete">delete device</a></td>
</tr>
</tbody>
{% endfor%}
</table>
<p><a href="/claim">claim this device</a>
{% endblock %}
|