|
|
|
@ -9,15 +9,27 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% if posters %}
|
|
|
|
|
<ul style="list-style-type:none;">
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Submitter</th>
|
|
|
|
|
<th>Posts</th>
|
|
|
|
|
<th>Amount</th>
|
|
|
|
|
</tr>
|
|
|
|
|
{% 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>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ poster }}</td>
|
|
|
|
|
<td>{% for post in data["posts"] %}<a href="{{ url_for('post.read', id=post.id) }}">{{ post }}</a>{{ "," if not loop.last }}{% endfor %}</td>
|
|
|
|
|
<td>{{ data["amount"] }} WOW</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
</table>
|
|
|
|
|
{% else %}
|
|
|
|
|
<p>No top posters yet!</p>
|
|
|
|
|
<p>No posts yet!</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
<a href="{{ url_for('index') }}"><button class="btn btn-warning">Go Home</button></a>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|