2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
{% block content %}
|
2022-10-29 00:38:39 +00:00
|
|
|
<h1 class="mt-3">User Badges</h1>
|
2022-05-04 23:09:46 +00:00
|
|
|
<div>This page describes the requirements for obtaining all profile badges.</div>
|
2022-10-29 00:38:39 +00:00
|
|
|
<div class="overflow-x-auto mt-3">
|
2022-06-27 02:47:49 +00:00
|
|
|
<table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
2022-09-03 03:04:51 +00:00
|
|
|
<th onclick="sort_table(0)">#</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Image</th>
|
|
|
|
<th>Description</th>
|
2022-09-03 03:04:51 +00:00
|
|
|
<th onclick="sort_table(4)">#</th>
|
|
|
|
<th onclick="sort_table(4)">Rarity</th>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-06-27 02:47:49 +00:00
|
|
|
{% for badge in badges %}
|
|
|
|
<tr>
|
|
|
|
<td>{{loop.index}}</td>
|
|
|
|
<td>{{badge.name}}</td>
|
2022-08-25 17:50:18 +00:00
|
|
|
<td>
|
2022-10-21 23:57:59 +00:00
|
|
|
<img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?b=4" width=45.83 height=50>
|
2022-08-25 17:50:18 +00:00
|
|
|
</td>
|
2022-06-27 02:47:49 +00:00
|
|
|
<td>{{badge.description}}</td>
|
|
|
|
{%- set ct = counts[badge.id] if badge.id in counts else (0, 0) %}
|
2022-10-10 05:23:02 +00:00
|
|
|
<td class="badges-rarity-qty"><a href="/badge_owners/{{badge.id}}">{{ct[0]}}</a></td>
|
|
|
|
<td class="badges-rarity-ratio">{{"{:0.3f}".format(ct[1])}}%</td>
|
2022-06-27 02:47:49 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-09-24 07:04:06 +00:00
|
|
|
<script defer src="{{'js/sort_table.js' | asset}}"></script>
|
2022-07-09 08:35:47 +00:00
|
|
|
|
2022-10-10 05:23:02 +00:00
|
|
|
{% endblock %}
|