Redo "added Time Requested to stats"

This reverts commit d827ec39d2.
This commit is contained in:
Daan Sprenkels
2018-11-28 12:29:20 +01:00
parent d827ec39d2
commit 88ff6ee997
2 changed files with 53 additions and 2 deletions

View File

@ -66,8 +66,34 @@
</table>
</div>
</div>
<div class="col-md-6">
<h2>Time Requested</h2>
<h4>Total: {{stats.total_time_requested}}</h4>
<h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>User</th>
<th>Duration</th>
</tr>
</thead>
<tbody>
{% for stat in stats.time_requested %}
<tr>
<th>{{ forloop.counter }}</th>
<td>{{ stat.user__name }}</td>
<td>{{ stat.duration }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
<h2>Unique requests</h2>
<h4>Total: {{stats.total_unique_requests}}</h4>
<h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive">
<table class="table table-striped">