Adding user view

closes #7
This commit is contained in:
2021-02-09 14:06:34 +01:00
parent 5d28707e18
commit 10933dd48b
4 changed files with 64 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
{% extends "admin.html" %}
{% block head2 %}
<script src="/static/sorttable.js"></script>
{% endblock %}
{% block admin %}
<table class="sortable">
<tr>
<th>
Kürzel
</th>
<th>
Ziellink
</th>
<th>
Benutzername
</th>
</tr>
{% for user in users %}
<tr>
<td>
<a href="/admin/view/profile/{{user.id}}"><span>{{user.id}}</span>
</a>
</td>
<td>
<a href="/admin/view/profile/{{user.id}}">{{ user.email }}
</a>
</td>
<td>
<a href="/admin/view/profile/{{user.id}}"><small>{{ user.username }}</small>
</a>
</td>
</tr>
{% endfor %}
</table>
{% endblock %}