Make the links and users list scrollable

closes #6
This commit is contained in:
2021-02-09 14:19:48 +01:00
parent 10933dd48b
commit a0a1065295
9 changed files with 195 additions and 181 deletions
+33 -31
View File
@@ -6,37 +6,39 @@
{% endblock %}
{% block admin %}
<table class="sortable">
<div class="scrollable">
<table class="sortable">
<tr>
<th>
Kürzel
</th>
<th>
Ziellink
</th>
<th>
Benutzername
</th>
</tr>
{% for links_user in links_per_users %}
{% set l = links_user[0] %}
{% set u = links_user[1] %}
<tr>
<td>
<a href="/admin/view/link/{{l.code}}"><span>{{l.code}}</span>
</a>
</td>
<td>
<a href="/admin/view/link/{{l.code}}">{{ l.target }}
</a>
</td>
<td>
<tr>
<th>
Kürzel
</th>
<th>
Ziellink
</th>
<th>
Benutzername
</th>
</tr>
{% for links_user in links_per_users %}
{% set l = links_user[0] %}
{% set u = links_user[1] %}
<tr>
<td>
<a href="/admin/view/link/{{l.code}}"><span>{{l.code}}</span>
</a>
</td>
<td>
<a href="/admin/view/link/{{l.code}}">{{ l.target }}
</a>
</td>
<td>
<a href="/admin/view/profile/{{u.id}}"><small>{{ u.username }}</small>
</a>
</td>
</tr>
{% endfor %}
</table>
<a href="/admin/view/profile/{{u.id}}"><small>{{ u.username }}</small>
</a>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}