From 0a94222cb24919ba426a7645cf46f881be9e4d63 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 2 Mar 2024 18:00:56 +0100 Subject: [PATCH] Color first place(s) red in leaderboard --- formula10/templates/statistics.jinja | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/formula10/templates/statistics.jinja b/formula10/templates/statistics.jinja index f958b11..5708ee1 100644 --- a/formula10/templates/statistics.jinja +++ b/formula10/templates/statistics.jinja @@ -25,8 +25,9 @@ {% for user in points.users_sorted_by_points() %} - - {{ points.user_standing()[user.name] }} + {% set user_standing = points.user_standing()[user.name] %} + + {{ user_standing }} {{ user.name }} {{ points.total_points_by(user.name) }} {{ points.picks_count(user.name) }}