mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
35 lines
894 B
HTML
35 lines
894 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>Posts</th>
|
|
<th>Amount</th>
|
|
</tr>
|
|
{% for poster, data in posters.items() | sort(attribute='1.amount', reverse=True) %}
|
|
<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 %}
|
|
</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 %}
|