You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
625 B
24 lines
625 B
4 years ago
|
{% extends 'base.html' %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<div class="container" style="text-align:center;">
|
||
|
|
||
|
<div class="title">
|
||
|
<h3>{% block title %}Top Posters{% endblock %}</h3>
|
||
|
</div>
|
||
|
|
||
|
{% if posters %}
|
||
|
<ul style="list-style-type:none;">
|
||
|
{% for poster, data in posters.items() | sort(attribute='1.amount', reverse=True) %}
|
||
|
<li>{{ poster }} - {% for post in data["posts"] %}<a href="{{ url_for('post.read', id=post.id) }}">{{ post }}</a>, {% endfor %} - {{ data["amount"] }} WOW received</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% else %}
|
||
|
<p>No top posters yet!</p>
|
||
|
{% endif %}
|
||
|
|
||
|
</div>
|
||
|
|
||
|
{% endblock %}
|