2020-09-16 18:32:16 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2021-05-05 09:00:36 +00:00
|
|
|
<div class="container content" style="text-align:center;">
|
2020-09-16 18:32:16 +00:00
|
|
|
|
2021-05-05 09:00:36 +00:00
|
|
|
<h1>Top Posters</h1>
|
2020-09-16 18:32:16 +00:00
|
|
|
|
|
|
|
{% if posters %}
|
2020-09-16 19:31:27 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
<th>Submitter</th>
|
2020-10-25 07:00:20 +00:00
|
|
|
<th>Post Count</th>
|
2020-09-16 19:31:27 +00:00
|
|
|
<th>Amount</th>
|
|
|
|
</tr>
|
2020-09-16 18:32:16 +00:00
|
|
|
{% for poster, data in posters.items() | sort(attribute='1.amount', reverse=True) %}
|
2020-09-16 19:31:27 +00:00
|
|
|
<tr>
|
2021-05-06 17:46:15 +00:00
|
|
|
<td><a href="/?submitter={{ poster }}">{{ poster }}</a></td>
|
2020-10-25 07:00:20 +00:00
|
|
|
<td>{{ data["posts"] | length }}</td>
|
2020-09-16 19:31:27 +00:00
|
|
|
<td>{{ data["amount"] }} WOW</td>
|
|
|
|
</tr>
|
2020-09-16 18:32:16 +00:00
|
|
|
{% endfor %}
|
2020-09-16 19:31:27 +00:00
|
|
|
</table>
|
2020-09-16 18:32:16 +00:00
|
|
|
{% else %}
|
2020-09-16 19:31:27 +00:00
|
|
|
<p>No posts yet!</p>
|
2020-09-16 18:32:16 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2020-09-16 19:31:27 +00:00
|
|
|
<hr>
|
2022-09-01 06:02:31 +00:00
|
|
|
<a href="{{ url_for('main.index') }}"><button class="btn btn-warning">Go Home</button></a>
|
2020-09-16 19:31:27 +00:00
|
|
|
|
2020-09-16 18:32:16 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|