Pslink/templates/index.html

58 lines
1.5 KiB
HTML
Raw Normal View History

2021-02-04 15:07:55 +01:00
{% extends "admin.html" %}
{% block head2 %}
<script src="/static/sorttable.js"></script>
{% endblock %}
2021-02-04 15:07:55 +01:00
{% block admin %}
<div class="scrollable">
<table class="sortable">
<tr>
<th>
2021-03-30 17:43:35 +02:00
{{ fluent(key="link-code", lang=user.language)
}}
</th>
<th>
2021-03-30 17:43:35 +02:00
{{ fluent(key="link-target", lang=user.language)
}}
</th>
<th>
2021-03-30 17:43:35 +02:00
{{ fluent(key="username", lang=user.language)
}}
</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>
</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 %}
<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 %}
<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 %}
</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>
</tr>
{% endfor %}
</table>
</div>
2021-02-04 15:07:55 +01:00
{% endblock %}