Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added skin avatars for Players. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 72 additions & 60 deletions mclogalyzer/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script type="text/javascript" src="http://cdn.ucb.org.br/Scripts/tablesorter/jquery.tablesorter.min.js"></script>
<script>
var columns = [
[".c-avatar", "Avatar", true],
[".c-time-played", "Time played", true],
[".c-logins", "Logins", false],
[".c-login-time", "Time per login", false],
Expand Down Expand Up @@ -92,6 +93,7 @@ <h4>Columns</h4>
<tr>
<th>#</th>
<th>Username</th>
<th class="col c-avatar">Avatar</th>
<th class="col c-time-played">Time played</th>
<th class="col c-logins">Logins</th>
<th class="col c-login-time">Time per login</th>
Expand All @@ -110,6 +112,7 @@ <h4>Columns</h4>
<tr>
<td class="c-place"></td>
<td><a class="js-link" data-page="page-{{ user.username }}" href="#">{{ user.username }}</a></td>
<td class="col c-avatar"><img src="http://achievecraft.com/tools/skin/32/{{ user.username }}.png" border="0"></td>
<td class="col c-time-played">{{ user.time }}</td>
<td class="col c-logins">{{ user.logins }}</td>
<td class="col c-login-time">{{ user.time_per_login }}</td>
Expand Down Expand Up @@ -149,72 +152,81 @@ <h4>Columns</h4>
</div>
{% for user in users %}
<div id="page-{{ user.username }}" class="page userpage row-fluid">
<h4>Player Statistics for {{user.username }}</h4>
<table class="table table-striped table-bordered">
<tr>
<th>Time Played:</th>
<td>{{ user.time }}</td>
</tr>
<tr>
<th>Logins:</th>
<td>{{ user.logins }}</td>
</tr>
<tr>
<th>Time per Login:</th>
<td>{{ user.time_per_login }}</td>
</tr>
<tr>
<th>First Login:</th>
<td>{{ user.first_login }}</td>
</tr>
<tr>
<th>Last Login:</th>
<td>{{ user.last_login }}</td>
</tr>
<tr>
<th>Longest Session:</th>
<td>{{ user.longest_session }}</td>
</tr>
<tr>
<th>Active Days:</th>
<td>{{ user.active_days }}</td>
</tr>
<tr>
<th>Time per Day:</th>
<td>{{ user.time_per_active_day }}</td>
</tr>
<tr>
<th>Messages Sent:</th>
<td>{{ user.messages }}</td>
</tr>
<tr>
<th>Time per Message:</th>
<td>{{ user.time_per_message }}</td>
</tr>
<tr>
<th>Deaths:</th>
<td>{{ user.death_count }}</td>
</tr>
{% if user.death_count > 0 %}
<tr>
<th>Types of Deaths:</th>
<td>
<div class="span12">
<h4>Player Statistics for {{user.username }}</h4>
<div class="row-fluid">
<div class="span2">
<img src="http://achievecraft.com/tools/skin/128/{{ user.username }}.png" border="0">
</div>
<div class="span10">
<table class="table table-striped table-bordered">
<tr>
<th>Count</th>
<th>Type of Death</th>
<th>Time Played:</th>
<td>{{ user.time }}</td>
</tr>
{% for death, count in user.death_types %}
<tr>
<td>{{ count }}</td>
<td>{{ death }}</td>
<th>Logins:</th>
<td>{{ user.logins }}</td>
</tr>
{% endfor %}
<tr>
<th>Time per Login:</th>
<td>{{ user.time_per_login }}</td>
</tr>
<tr>
<th>First Login:</th>
<td>{{ user.first_login }}</td>
</tr>
<tr>
<th>Last Login:</th>
<td>{{ user.last_login }}</td>
</tr>
<tr>
<th>Longest Session:</th>
<td>{{ user.longest_session }}</td>
</tr>
<tr>
<th>Active Days:</th>
<td>{{ user.active_days }}</td>
</tr>
<tr>
<th>Time per Day:</th>
<td>{{ user.time_per_active_day }}</td>
</tr>
<tr>
<th>Messages Sent:</th>
<td>{{ user.messages }}</td>
</tr>
<tr>
<th>Time per Message:</th>
<td>{{ user.time_per_message }}</td>
</tr>
<tr>
<th>Deaths:</th>
<td>{{ user.death_count }}</td>
</tr>
{% if user.death_count > 0 %}
<tr>
<th>Types of Deaths:</th>
<td>
<table class="table table-striped table-bordered">
<tr>
<th>Count</th>
<th>Type of Death</th>
</tr>
{% for death, count in user.death_types %}
<tr>
<td>{{ count }}</td>
<td>{{ death }}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
</table>
</td>
</tr>
{% endif %}
</table>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
Expand Down