From eb3dd36b594da39ee2a73545dbcbb801c354a954 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 05:57:30 +0200 Subject: [PATCH] add hats to a leaderboard table --- files/templates/leaderboard.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index 389d95122..e72bf4213 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -248,18 +248,22 @@ - {% for user in users9 %} - + {% for user, num in users9 %} + {{loop.index}} - {{user[0].username}} - {{user[1]}} + {% include "user_in_table.html" %} + {{num}} {% endfor %} {% if pos9 and (pos9[0] > 25 or not pos9[1]) %} {{pos9[0]}} - {{v.username}} - {{pos9[1]}} + + {% with user=v %} + {% include "user_in_table.html" %} + {% endwith %} + + {{pos9[1]}} {% endif %}