summaryrefslogtreecommitdiffstats
path: root/at/templates/account.html
diff options
context:
space:
mode:
Diffstat (limited to 'at/templates/account.html')
-rw-r--r--at/templates/account.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/at/templates/account.html b/at/templates/account.html
new file mode 100644
index 0000000..5e8272a
--- /dev/null
+++ b/at/templates/account.html
@@ -0,0 +1,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 %}