MarseyWorld/files/templates/leaderboard.html

533 lines
14 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;
<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-downvotes">Downvotes</a> &bull;
<a href="#leaderboard-badges">Badges</a> &bull;
{% if users6 %}<a href="#leaderboard-based">Based</a> &bull; {% endif -%}
{%- if users12 %}<a href="#leaderboard-marseys">Marseys</a> &bull; {% endif -%}
{%- if users13 %}<a href="#leaderboard-upgiven">Upvotes Given</a> &bull; {% endif -%}
2022-09-03 23:53:45 +00:00
<a href="#leaderboard-winnings">Winnings</a> &bull;
<a href="#leaderboard-losses">Losses</a> &bull;
<a href="#leaderboard-blocked">Blocked</a> &bull;
<a href="#leaderboard-owned-hats">Owned Hats</a> &bull;
2022-09-03 18:50:20 +00:00
<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-05-04 23:09:46 +00:00
<td>{{user.coins}}</td>
</tr>
{% endfor %}
{% if pos1 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.coins}}</td>
</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-05-04 23:09:46 +00:00
<td>{{user.coins_spent}}</td>
</tr>
{% endfor %}
{% if pos7 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.coins_spent}}</td>
</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>
<tbody id="followers-table">
{% 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-05-04 23:09:46 +00:00
<td>{{user.truecoins}}</td>
</tr>
{% endfor %}
{% if pos10 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.truecoins}}</td>
</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-05-04 23:09:46 +00:00
<td>{{user.stored_subscriber_count}}</td>
</tr>
{% endfor %}
{% if pos2 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.stored_subscriber_count}}</td>
</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-05-04 23:09:46 +00:00
<td>{{user.post_count}}</td>
</tr>
{% endfor %}
{% if pos3 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.post_count}}</td>
</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-05-04 23:09:46 +00:00
<td>{{user.comment_count}}</td>
</tr>
{% endfor %}
{% if pos4 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.comment_count}}</td>
</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-05-04 23:09:46 +00:00
<td>{{user.received_award_count}}</td>
</tr>
{% endfor %}
{% if pos5 > 25 %}
<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-05-04 23:09:46 +00:00
<td>{{v.received_award_count}}</td>
</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-downvotes">Top 25 by received downvotes</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>Downvotes</th>
</tr>
</thead>
<tbody id="followers-table">
2022-09-05 03:57:30 +00:00
{% for user, num in users9 %}
<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:57:30 +00:00
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos9 and (pos9[0] > 25 or not pos9[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos9[0]}}</td>
2022-09-05 03:57:30 +00:00
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{pos9[1]}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endif %}
</tbody>
</table>
2022-09-04 22:29:26 +00:00
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>
<tbody id="followers-table">
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-04 22:25:22 +00:00
<td>{{num}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos11 and (pos11[0] > 25 or not pos11[1]) %}
<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-05-04 23:09:46 +00:00
<td>{{pos11[1]}}</td>
</tr>
{% endif %}
</tbody>
</table>
{% if users6 %}
2022-09-03 23:53:45 +00:00
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-based">Top 25 by based count</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>Based count</th>
</tr>
</thead>
{% for user in users6 %}
<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-05-04 23:09:46 +00:00
<td>{{user.basedcount}}</td>
</tr>
{% endfor %}
{% if pos6 > 25 %}
<tr style="border-top:2px solid var(--primary)">
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-05-04 23:09:46 +00:00
<td>{{v.basedcount}}</td>
</tr>
{% endif %}
</table>
{% endif %}
{% if users12 %}
2022-09-03 23:53:45 +00:00
2022-08-05 20:48:08 +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>
<tbody id="followers-table">
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-04 22:25:22 +00:00
<td>{{num}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos12 and (pos12[0] > 25 or not pos12[1]) %}
<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-05-04 23:09:46 +00:00
<td>{{pos12[1]}}</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
{% if users13 %}
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-upgiven">Top 25 by upvotes given</a></h5>
2022-09-04 22:30:32 +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>Upvotes</th>
</tr>
</thead>
<tbody id="followers-table">
{% for user, num in users13 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
2022-05-04 23:09:46 +00:00
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
{% if pos13 and (pos13[0] > 25 or not pos13[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos13[0]}}</td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-05-04 23:09:46 +00:00
<td>{{pos13[1]}}</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
2022-09-04 22:30:32 +00:00
2022-08-05 20:48:08 +00:00
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-winnings">Top 25 by winnings</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>Winnings</th>
</tr>
</thead>
{% for user in users14 %}
<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-05-04 23:09:46 +00:00
<td>{{user.winnings}}</td>
</tr>
{% endfor %}
{% if pos14 > 25 %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos14}}</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-05-04 23:09:46 +00:00
<td>{{v.winnings}}</td>
</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-losses">Bottom 25 by winnings</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>Winnings</th>
</tr>
</thead>
{% for user in users15 %}
<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-05-04 23:09:46 +00:00
<td>{{user.winnings}}</td>
</tr>
{% endfor %}
{% if pos15 > 25 %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos15}}</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-05-04 23:09:46 +00:00
<td>{{v.winnings}}</td>
</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-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 %}
<tr {% if v.id == user.target_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-05 20:23:35 +00:00
<td><a href="/blockers/{{user.id}}">{{num}}</a></td>
</tr>
{% endfor %}
</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>
<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-03 18:50:20 +00:00
<td>{{num}}</td>
</tr>
{% endfor %}
</table>
<h5 class="font-weight-bolder text-center pt-2 pb-3"><a id="leaderboard-designed-hats">Top 25 by Designed Hats</a></h5>
<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-03 18:50:20 +00:00
<td>{{num}}</td>
</tr>
{% endfor %}
</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 %}