You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suchwow/suchwow/templates/leaderboard.html

36 lines
834 B
HTML

{% 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 %}
<table class="table table-striped">
<tr>
<th>Submitter</th>
<th>Post Count</th>
<th>Amount</th>
</tr>
{% for poster, data in posters.items() | sort(attribute='1.amount', reverse=True) %}
<tr>
<td><a href="/?submitter={{ poster }}">{{ poster }}</a></td>
<td>{{ data["posts"] | length }}</td>
<td>{{ data["amount"] }} WOW</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>No posts yet!</p>
{% endif %}
<hr>
<a href="{{ url_for('index') }}"><button class="btn btn-warning">Go Home</button></a>
</div>
{% endblock %}