This repository was archived by the owner on Jan 13, 2019. It is now read-only.
forked from allianceauth/allianceauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More statistics features for Fatlink (allianceauth#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.
- Loading branch information
Showing
8 changed files
with
160 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
stock/templates/registered/fatlinkpersonalmonthlystatisticsview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% 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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters