2021-10-15 14:08:27 +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 >
2022-05-02 18:14:06 +00:00
< div > Rarity is the ratio of badge quantity to the number of non-lurkers (truescore ≥ < span id = "badges-nonlurk-tc" > {{ nonlurk_tc }}< / span > ): < span id = "badges-nonlurkers" > {{ nonlurk }}< / span > .< / 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-01-03 10:59:29 +00:00
< div class = "overflow-x-auto" > < 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:14:06 +00:00
< th > #< / th >
< th > 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) %}
< td class = "badges-rarity-qty" > {{ ct[0] }}< / td >
< 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 %}