2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
{% block content %}
|
2022-05-02 18:50:43 +00:00
|
|
|
<script src="/assets/js/sort_table.js?v=242"></script>
|
2021-10-15 14:08:27 +00:00
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
<h1>User Badges</h1>
|
|
|
|
<div>This page describes the requirements for obtaining all profile badges.</div>
|
2021-11-21 17:40:47 +00:00
|
|
|
<pre>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
|
2021-11-21 17:40:47 +00:00
|
|
|
</pre>
|
2022-05-02 18:50:43 +00:00
|
|
|
<div class="overflow-x-auto">
|
|
|
|
<table id="sortable_table" class="table table-striped mb-5">
|
2021-10-15 14:08:27 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
2022-02-03 06:39:02 +00:00
|
|
|
<th>#</th>
|
2021-10-15 14:08:27 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Image</th>
|
|
|
|
<th>Description</th>
|
2022-05-02 18:50:43 +00:00
|
|
|
<th role="button" onclick="sort_table(4)">#</th>
|
2022-05-03 05:58:10 +00:00
|
|
|
<th role="button" onclick="sort_table(4)">Rarity</th>
|
2021-10-15 14:08:27 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-01-23 19:51:56 +00:00
|
|
|
{% for badge in badges %}
|
2021-10-15 14:08:27 +00:00
|
|
|
<tr>
|
2022-02-24 12:03:28 +00:00
|
|
|
<td>{{loop.index}}</td>
|
2022-01-23 19:51:56 +00:00
|
|
|
<td>{{badge.name}}</td>
|
2022-04-09 17:32:38 +00:00
|
|
|
<td><img alt="{{badge.name}}" loading="lazy" src="/assets/images/badges/{{badge.id}}.webp?v=1016" width=45.83 height=50>
|
2022-01-23 19:51:56 +00:00
|
|
|
<td>{{badge.description}}</td>
|
2022-05-02 18:14:06 +00:00
|
|
|
{%- set ct = counts[badge.id] if badge.id in counts else (0, 0) %}
|
2022-05-03 04:28:42 +00:00
|
|
|
<td class="badges-rarity-qty"><a href="/badge_owners/{{badge.id}}">{{ ct[0] }}</a></td>
|
2022-05-02 18:14:06 +00:00
|
|
|
<td class="badges-rarity-ratio">{{ "{:0.3f}".format(ct[1]) }}%</td>
|
2021-10-15 14:08:27 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2021-07-21 01:12:26 +00:00
|
|
|
{% endblock %}
|