MarseyWorld/files/templates/badges.html

44 lines
1.1 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
{% block content %}
<pre>
</pre>
<h1>User Badges</h1>
<div>This page describes the requirements for obtaining all profile badges.</div>
<pre>
</pre>
<div class="overflow-x-auto">
2022-06-27 02:47:49 +00:00
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th role="button" onclick="sort_table(0)">#</th>
2022-06-27 02:47:49 +00:00
<th>Name</th>
<th>Image</th>
<th>Description</th>
<th role="button" onclick="sort_table(4)">#</th>
<th role="button" onclick="sort_table(4)">Rarity</th>
</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-08-25 20:34:05 +00:00
<img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?v=1" 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) %}
<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>
</tr>
{% endfor %}
</table>
</div>
2022-07-14 16:20:09 +00:00
<script src="/assets/js/sort_table.js?v=244"></script>
2021-07-21 01:12:26 +00:00
{% endblock %}