More statistics features for Fatlink (#423)

* Fixed a bug with links not registering correctly when undocked. Also removed some typos.

* Adding functionality to view individual members stats as an admin, to see ships flown, and paps created, if any. Also correcting a incorrectly sorted table, and a faulty link.
This commit is contained in:
Joakim Strandberg
2016-05-05 09:18:35 +02:00
committed by Mr McClain
parent dbc9b584d1
commit 20fdcc5b31
8 changed files with 160 additions and 17 deletions

View File

@@ -9,11 +9,11 @@
<div class="col-lg-12">
<h1 class="page-header text-center">Participation data statistics for {{ year }}
<div class="text-right">
<a href="{% url 'auth_fatlink_view_personal_statistics' previous_year %}">
<a href="{% url 'auth_fatlink_view_personal_statistics_year' previous_year %}">
<button type="button" class="btn btn-info">Previous year</button>
</a>
{% if next_year %}
<a href="{% url 'auth_fatlink_view_personal_statistics' next_year %}">
<a href="{% url 'auth_fatlink_view_personal_statistics_year' next_year %}">
<button type="button" class="btn btn-info">Next year</button>
</a>
{% endif %}
@@ -24,9 +24,13 @@
<th class="col-md-2 text-center">Month</th>
<th class="col-md-2 text-center">Fats</th>
</tr>
{% for month, n_fats in monthlystats.items %}
{% for monthnr, month, n_fats in monthlystats %}
<tr>
<td class="text-center">{{ month }}</td>
<td class="text-center">
<a href="{% url 'auth_fatlink_view_personal_statistics_month' year monthnr %}">
{{ month }}
</a>
</td>
<td class="text-center">{{ n_fats }}</td>
</tr>
{% endfor %}