mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 11:42:21 +01:00
changed Most played uploads to exclude your requests, and some small fixes
This commit is contained in:
@ -8,17 +8,22 @@
|
||||
<h1>User Statistics</h1>
|
||||
|
||||
<div class="row">
|
||||
{% if not stats %}
|
||||
<div class="alert alert-danger">
|
||||
<strong>Stats unavailable :(</strong>
|
||||
</div>
|
||||
{% else %}
|
||||
{% if current_age_text %}
|
||||
<div class="alert alert-info">
|
||||
<strong>{{ current_age_text }}</strong>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<h4>Total uploads: {{ stats.total_uploads }}</h4>
|
||||
<h4>Total requests: {{ stats.total_requests }}</h4>
|
||||
<h4>Unique requests: {{ stats.unique_requests }} ({% widthratio stats.unique_requests stats.total_requests 100 %}%)</h4>
|
||||
<h4>Total requested uploads: {{stats.total_played_uploads}}</h4>
|
||||
<div class="col-md-6">
|
||||
<h2>Most played songs</h2>
|
||||
<h4>Total: {{ stats.total_requests }}</h4>
|
||||
<h4>Top {{ stats.stats_top_count }}:</h4>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
@ -45,7 +50,8 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h2>Most played uploads</h2>
|
||||
<h2>Uploads requested by others</h2>
|
||||
<h4>Total: {{stats.total_played_uploads}}</h4>
|
||||
<h4>Top {{ stats.stats_top_count }}:</h4>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
@ -87,7 +93,7 @@
|
||||
<tr>
|
||||
<th>{{ forloop.counter }}</th>
|
||||
<td>{{ stat.song__user__name }}</td>
|
||||
<td>{{ stat.total }} ({% widthratio stat.total total_requests 100 %}%)</td>
|
||||
<td>{{ stat.total }} ({% widthratio stat.total stats.total_requests 100 %}%)</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@ -95,5 +101,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user