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

@@ -37,7 +37,12 @@
<th class="col-md-1"></th>
<th class="col-md-2">Character</th>
<th class="col-md-2">Main character</th>
{% if perms.auth.fleetactivitytracking%}
<th class="col-md-2">Killboard</th>
<th class="col-md-2">Fleet statistics</th>
{% else %}
<th class="col-md-5">Killboard</th>
{% endif %}
<th class="col-md-2">API JackKnife</th>
</tr>
{% for result in results %}
@@ -48,7 +53,7 @@
<td>{{ result.name }}</td>
<td>
{% if result.api_registered%}
{{ result.main }}
{{ result.main.character_name }}
{% else %}
<span class="label label-danger">No API registered!</span>
{% endif %}
@@ -57,6 +62,19 @@
<p><a href="https://zkillboard.com/character/{{ result.char.character_id }}/" class="label label-danger" target="_blank">Killboard</a></p>
</td>
{% if perms.auth.fleetactivitytracking %}
{% if result.main %}
<td>
<a href="{% url 'auth_fatlink_view_user_statistics_month' result.main.character_id year month%}">
<button type="button" class="btn btn-primary">Statistics
</button>
</a>
</td>
{% else %}
<td></td>
{% endif %}
{% endif %}
<td>
{% if result.api_registered %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ result.apiinfo.api_id }}&apik={{ result.apiinfo.api_key }}"