diff --git a/suchwow/templates/index.html b/suchwow/templates/index.html index ac5be2f..058352a 100644 --- a/suchwow/templates/index.html +++ b/suchwow/templates/index.html @@ -9,11 +9,22 @@ {% if posts %} -
Date | +ID | +Title | +Submitter | +
---|---|---|---|
{{ post.timestamp.strftime('%Y-%m-%d %H:%M') }} | +{{ post.id }} | +{{ post.title }} | +{{ post.submitter }} | +
No posts yet!
{% endif %} diff --git a/suchwow/templates/leaderboard.html b/suchwow/templates/leaderboard.html index 11371c5..00ccf54 100644 --- a/suchwow/templates/leaderboard.html +++ b/suchwow/templates/leaderboard.html @@ -9,15 +9,27 @@ {% if posters %} -Submitter | +Posts | +Amount | +
---|---|---|
{{ poster }} | +{% for post in data["posts"] %}{{ post }}{{ "," if not loop.last }}{% endfor %} | +{{ data["amount"] }} WOW | +
No top posters yet!
+No posts yet!
{% endif %} +Date | +ID | +Title | +Submitter | +Amount | +
---|---|---|---|---|
{{ post[1].timestamp.strftime('%Y-%m-%d %H:%M') }} | +{{ post[1].id }} | +{{ post[1].title }} | +{{ post[1].submitter }} | +{{ post[0] }} WOW | +
No posts yet!
{% endif %} +