mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-23 11:12:28 +02:00
* 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.
70 lines
2.9 KiB
HTML
70 lines
2.9 KiB
HTML
{% extends "public/base.html" %}
|
|
{% load bootstrap %}
|
|
{% load staticfiles %}
|
|
|
|
{% block title %}Alliance Auth{% endblock %}
|
|
{% block page_title %}Personal fatlink statistics{% endblock page_title %}
|
|
|
|
{% block content %}
|
|
<div class="col-lg-12">
|
|
<h1 class="page-header text-center">Participation data statistics for {{ month }}, {{ year }}
|
|
{% if char_id %}
|
|
<div class="text-right">
|
|
<a href="{% url 'auth_fatlink_view_user_statistics_month' char_id previous_month|date:"Y" previous_month|date:"m" %}">
|
|
<button type="button" class="btn btn-info">Previous month</button>
|
|
</a>
|
|
<a href="{% url 'auth_fatlink_view_user_statistics_month' char_id next_month|date:"Y" next_month|date:"m" %}">
|
|
<button type="button" class="btn btn-info">Next month</button>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</h1>
|
|
<h2>{{ user }} has collected {{ n_fats }} links this month.</h2>
|
|
<table class="table table-responsive table-bordered">
|
|
<tr>
|
|
<th class="col-md-2 text-center">Ship</th>
|
|
<th class="col-md-2 text-center">Times used</th>
|
|
</tr>
|
|
{% for ship, n_fats in shipStats %}
|
|
<tr>
|
|
<td class="text-center">{{ ship }}</td>
|
|
<td class="text-center">{{ n_fats }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% if created_fats %}
|
|
<h2>{{ user }} has created {{ n_created_fats }} links this month.</h2>
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th class="text-center">Name</th>
|
|
<th class="text-center">Creator</th>
|
|
<th class="text-center">Fleet</th>
|
|
<th class="text-center">Eve Time</th>
|
|
<th class="text-center">Duration</th>
|
|
<th class="text-center">Edit</th>
|
|
</tr>
|
|
{% for link in created_fats %}
|
|
<tr>
|
|
<td class="text-center"><a href="{% url 'auth_click_fatlink_view' %}{{ link.hash }}/{{ link.name }}">{{ link.name }}</a></td>
|
|
<td class="text-center">{{ link.creator.username }}</td>
|
|
<td class="text-center">{{ link.fleet }}</td>
|
|
<td class="text-center">{{ link.fatdatetime }}</td>
|
|
<td class="text-center">{{ link.duration }}</td>
|
|
<td class="text-center">
|
|
<a href="{% url 'auth_modify_fatlink_view' %}{{ link.hash }}/{{ link.name }}">
|
|
<button type="button" class="btn btn-info"><span
|
|
class="glyphicon glyphicon-edit"></span></button>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
<script src="/static/js/dateformat.js"></script>
|
|
|
|
{% endblock content %}
|