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
+1
View File
@@ -14,6 +14,7 @@
<li><a href="/admin/index/">Liste</a></li>
<li><a href="/admin/submit/">Hinzufügen</a></li>
<li><a href="/admin/signup/">Einladen</a></li>
<li><a href="/admin/view/users/">Benutzer</a></li>
<li style="float:right"><a href="/admin/logout/">Abmelden</a></li>
<li style="float:right">
<div class="willkommen">Herzlich willkommen {{ name }}</div>
+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 %}