{% extends "admin.html" %} {% block head2 %} <script src="/static/sorttable.js"></script> {% endblock %} {% block admin %} <div class="scrollable"> <table class="sortable"> <tr> <th> Kürzel </th> <th> Ziellink </th> <th> Benutzername </th> <th> Statistik </th> </tr> {% for links_user in links_per_users %} {% 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> {% if user.role == 2 or user.id == u.id %} <a href="/admin/view/profile/{{u.id}}"><small>{{ u.username }}</small> </a> {% else %} <small>{{ u.username }}</small> {% endif %} </td> <td> {{ c.count }} </td> </tr> {% endfor %} </table> </div> {% endblock %}