MarseyWorld/files/templates/leaderboard.html

401 lines
10 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "settings2.html" %}
{% block pagetitle %}Leaderboard{% endblock %}
{% block content %}
<pre class="d-none d-md-inline-block"></pre>
<div id="leaderboard-contents" style="text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem;">
2022-09-03 23:53:45 +00:00
<a href="#leaderboard-coins">Coins</a> &bull;
<a href="#leaderboard-spent">Spent in shop</a> &bull;
2022-09-03 23:53:45 +00:00
<a href="#leaderboard-truescore">Truescore</a> &bull;
<a href="#leaderboard-followers">Followers</a> &bull;
<a href="#leaderboard-posts">Posts</a> &bull;
<a href="#leaderboard-comments">Comments</a> &bull;
<a href="#leaderboard-awards">Awards</a> &bull;
<a href="#leaderboard-badges">Badges</a> &bull;
2022-09-08 15:53:16 +00:00
{% if users12 %}<a href="#leaderboard-marseys">Marseys</a> &bull; {% endif %}
2022-09-03 23:53:45 +00:00
<a href="#leaderboard-blocked">Blocked</a> &bull;
<a href="#leaderboard-owned-hats">Owned hats</a> &bull;
<a href="#leaderboard-designed-hats">Designed hats</a>
</div>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-coins">Top 25 by coins</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Coins</th>
</tr>
</thead>
{% for user in users1 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(user.coins)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos1 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos1}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(v.coins)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-spent">Top 25 by coins spent in shop</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Coins</th>
</tr>
</thead>
{% for user in users7 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(user.coins_spent)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos7 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos7}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(v.coins_spent)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-truescore">Top 25 by truescore</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Truescore</th>
</tr>
</thead>
2022-09-05 20:43:49 +00:00
<tbody>
2022-05-04 23:09:46 +00:00
{% for user in users10 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(user.truecoins)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos10 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos10}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 06:43:38 +00:00
<td>{{"{:,}".format(v.truecoins)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</tbody>
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-followers">Top 25 by followers</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Followers</th>
</tr>
</thead>
{% for user in users2 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td><a href="/@{{user.username}}/followers">{{"{:,}".format(user.stored_subscriber_count)}}</a></td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos2 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos2}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td><a href="/@{{v.username}}/followers">{{"{:,}".format(v.stored_subscriber_count)}}</a></td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-posts">Top 25 by post count</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Posts</th>
</tr>
</thead>
{% for user in users3 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(user.post_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos3 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos3}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(v.post_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-comments">Top 25 by comment count</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Comments</th>
</tr>
</thead>
{% for user in users4 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(user.comment_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos4 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos4}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(v.comment_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-awards">Top 25 by received awards</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Awards</th>
</tr>
</thead>
{% for user in users5 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(user.received_award_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
2022-09-06 02:58:04 +00:00
{% if pos5 %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos5}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(v.received_award_count)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</table>
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-badges">Top 25 by badges</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Badges</th>
</tr>
</thead>
2022-09-05 20:43:49 +00:00
<tbody>
2022-09-04 22:25:22 +00:00
{% for user, num in users11 %}
2022-09-04 22:27:23 +00:00
<tr {% if v.id == user.id %}class="self"{% endif %}>
2022-05-04 23:09:46 +00:00
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(num)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos11 and (pos11[0] > 25 or not pos11[1]) %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos11[0]}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(pos11[1])}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</tbody>
</table>
2022-05-04 23:09:46 +00:00
{% if users12 %}
2022-09-03 23:53:45 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-marseys">Top 25 by Marseys made</a></h5>
2022-09-03 23:53:45 +00:00
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Marseys</th>
</tr>
</thead>
2022-09-05 20:43:49 +00:00
<tbody>
2022-09-04 22:25:22 +00:00
{% for user, num in users12 %}
2022-09-04 22:27:23 +00:00
<tr {% if v.id == user.id %}class="self"{% endif %}>
2022-05-04 23:09:46 +00:00
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(num)}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos12 and (pos12[0] > 25 or not pos12[1]) %}
2022-05-04 23:09:46 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos12[0]}}</td>
2022-09-03 23:53:45 +00:00
<td>
2022-09-05 03:01:06 +00:00
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
2022-09-03 23:53:45 +00:00
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(pos12[1])}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-blocked">Top 25 most blocked</a></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Blocked By</th>
</tr>
</thead>
2022-09-05 07:26:12 +00:00
{% for user, num in users16 %}
2022-09-06 02:13:43 +00:00
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 07:26:12 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-23 12:58:33 +00:00
<td><a href="/@{{user.username}}/blockers">{{"{:,}".format(num)}}</a></td>
</tr>
{% endfor %}
{% if pos16 and (pos16[0] > 25 or not pos16[1]) %}
2022-09-06 02:13:43 +00:00
<tr style="border-top:2px solid var(--primary)">
<td>{{pos16[0]}}</td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-09-23 12:58:33 +00:00
<td><a href="/@{{v.username}}/blockers">{{"{:,}".format(pos16[1])}}</a></td>
2022-09-06 02:13:43 +00:00
</tr>
{% endif %}
</table>
2022-09-03 18:50:20 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-owned-hats">Top 25 by owned hats</a></h5>
2022-09-03 18:50:20 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Owned Hats</th>
</tr>
</thead>
2022-09-05 07:26:12 +00:00
{% for user,num in users17 %}
2022-09-03 18:50:20 +00:00
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(num)}}</td>
2022-09-03 18:50:20 +00:00
</tr>
{% endfor %}
2022-09-06 02:52:03 +00:00
{% if pos17 and (pos17[0] > 25 or not pos17[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos17[0]}}</td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(pos17[1])}}</a></td>
2022-09-06 02:52:03 +00:00
</tr>
{% endif %}
2022-09-03 18:50:20 +00:00
</table>
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-designed-hats">Top 25 by designed hats</a></h5>
2022-09-03 18:50:20 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Designed Hats</th>
</tr>
</thead>
2022-09-05 07:26:12 +00:00
{% for user,num in users18 %}
2022-09-03 18:50:20 +00:00
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(num)}}</td>
2022-09-03 18:50:20 +00:00
</tr>
{% endfor %}
2022-09-06 02:52:03 +00:00
{% if pos18 and (pos18[0] > 25 or not pos18[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos18[0]}}</td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-09-10 09:01:53 +00:00
<td>{{"{:,}".format(pos18[1])}}</a></td>
2022-09-06 02:52:03 +00:00
</tr>
{% endif %}
2022-09-03 18:50:20 +00:00
</table>
<a id="leader--top-btn" href="#leaderboard-contents" role="button"
style="position: fixed; bottom: 5rem; right: 2rem; font-size: 3rem;">
<i class="fas fa-arrow-alt-circle-up"></i>
</a>
2022-09-03 23:53:45 +00:00
{% endblock %}