2021-02-04 15:07:55 +01:00
|
|
|
{% extends "admin.html" %}
|
|
|
|
|
2021-02-08 19:25:08 +01:00
|
|
|
|
|
|
|
{% block head2 %}
|
|
|
|
<script src="/static/sorttable.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-02-04 15:07:55 +01:00
|
|
|
{% block admin %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div class="scrollable">
|
|
|
|
<table class="sortable">
|
2021-02-08 19:25:08 +01:00
|
|
|
|
2021-02-09 14:19:48 +01:00
|
|
|
<tr>
|
|
|
|
<th>
|
2021-03-30 17:43:35 +02:00
|
|
|
{{ fluent(key="link-code", lang=user.language)
|
|
|
|
}}
|
2021-02-09 14:19:48 +01:00
|
|
|
</th>
|
|
|
|
<th>
|
2021-03-30 17:43:35 +02:00
|
|
|
{{ fluent(key="link-target", lang=user.language)
|
|
|
|
}}
|
2021-02-09 14:19:48 +01:00
|
|
|
</th>
|
|
|
|
<th>
|
2021-03-30 17:43:35 +02:00
|
|
|
{{ fluent(key="username", lang=user.language)
|
|
|
|
}}
|
2021-02-09 14:19:48 +01:00
|
|
|
</th>
|
2021-02-09 21:30:11 +01:00
|
|
|
<th>
|
2021-03-30 17:43:35 +02:00
|
|
|
{{ fluent(key="statistics", lang=user.language)
|
|
|
|
}}
|
2021-02-09 21:30:11 +01:00
|
|
|
</th>
|
2021-02-09 14:19:48 +01:00
|
|
|
</tr>
|
|
|
|
{% for links_user in links_per_users %}
|
2021-02-14 22:28:34 +01:00
|
|
|
{% set l = links_user.link %}
|
|
|
|
{% set u = links_user.user %}
|
|
|
|
{% set c = links_user.clicks %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<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>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% if user.role == 2 or user.id == u.id %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<a href="/admin/view/profile/{{u.id}}"><small>{{ u.username }}</small>
|
|
|
|
</a>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% else %}
|
|
|
|
<small>{{ u.username }}</small>
|
|
|
|
{% endif %}
|
2021-02-09 14:19:48 +01:00
|
|
|
</td>
|
2021-02-09 21:30:11 +01:00
|
|
|
<td>
|
2021-03-21 08:31:47 +01:00
|
|
|
{{ c.number }}
|
2021-02-09 21:30:11 +01:00
|
|
|
</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-02-04 15:07:55 +01:00
|
|
|
{% endblock %}
|