Files
OpenBench/Templates/OpenBench/users.html
T

39 lines
1.1 KiB
HTML

{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block content %}
<table>
<tr>
<th>USERNAME</th>
<th>GAMES</th>
<th>TESTS</th>
<th>ENGINE</th>
<th>SOURCE REPOSITORY</th>
</tr>
{% for profile in profiles %}
{% if profile.enabled %}
<tr>
<td><a href="/user/{{profile.user.username}}">{{profile.user.username}}</a></td>
<td style="text-align: right">{{profile.games|insertCommas}}</td>
<td style="text-align: right">{{profile.tests|insertCommas}}</td>
<td>{{profile.engine}}</td>
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
</tr>
{% endif %}
{% endfor %}
<tr style="font-weight: bold">
<th>OVERALL</th>
<th>{{profiles|sumAttributes:"games"|insertCommas}}</th>
<th>{{profiles|sumAttributes:"tests"|insertCommas}}</th>
<th></th><th></th>
</tr>
</table>
{% endblock %}