Cleanup templates for all views
Make use of the block structure to clean up index/events/search heavily Fix a bug for the paging context on the events view
This commit is contained in:
1 parent
caa5bcfdf6
commit
9ec29cf03b
16 files changed
+542
-597
No files matched your search
@@ -1,39 +1,40 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% load mytags %}
|
||||
|
||||
{% block style %}
|
||||
{% load static %}
|
||||
{% endblock %}
|
||||
{% load mytags %} <!-- For sumAttributes() & insertCommas() -->
|
||||
|
||||
{% block content %}
|
||||
<table class="summarytable">
|
||||
<tr>
|
||||
<th class="numeric"> OVERALL </th>
|
||||
<th class="numeric">| USERS {{ profiles|length }} </th>
|
||||
<th class="numeric">| TESTS {{ profiles|sumAttributes:"tests"|insertCommas }}</th>
|
||||
<th class="numeric">| GAMES {{ profiles|sumAttributes:"games"|insertCommas }}</th>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="rawtable">
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Last Seen</th>
|
||||
<th class="numeric">Games</th>
|
||||
<th class="numeric">Tests</th>
|
||||
<th>Engine</th>
|
||||
<th>Source Repository</th>
|
||||
</tr>
|
||||
{% for profile in profiles %}
|
||||
<tr>
|
||||
<td><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
|
||||
<td>{{profile.updated|date:'Y-m-d'}}</td>
|
||||
<td class="numeric">{{profile.games}}</td>
|
||||
<td class="numeric">{{profile.tests}}</td>
|
||||
<td>{{profile.engine}}</td>
|
||||
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<table>
|
||||
|
||||
<table class="summarytable">
|
||||
<tr>
|
||||
<th class="numeric"> OVERALL </th>
|
||||
<th class="numeric">| USERS {{ profiles|length }} </th>
|
||||
<th class="numeric">| TESTS {{ profiles|sumAttributes:"tests"|insertCommas }}</th>
|
||||
<th class="numeric">| GAMES {{ profiles|sumAttributes:"games"|insertCommas }}</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="rawtable">
|
||||
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Last Seen</th>
|
||||
<th class="numeric">Games</th>
|
||||
<th class="numeric">Tests</th>
|
||||
<th>Engine</th>
|
||||
<th>Source Repository</th>
|
||||
</tr>
|
||||
|
||||
{% for profile in profiles %}
|
||||
<tr>
|
||||
<td><a href="/viewUser/{{profile.user.username}}">{{profile.user.username}}</a></td>
|
||||
<td>{{profile.updated|date:'Y-m-d'}}</td>
|
||||
<td class="numeric">{{profile.games}}</td>
|
||||
<td class="numeric">{{profile.tests}}</td>
|
||||
<td>{{profile.engine}}</td>
|
||||
<td><a href="{{profile.repo}}">{{profile.repo}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user