From b9b084ca1e89ef6778ad05f019061509b7a2b77d Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 28 Oct 2022 04:51:41 -0500 Subject: [PATCH] fix more templating errors --- files/templates/leaderboard.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index 255193182..7ecd030f7 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -39,12 +39,11 @@ {% for user in lb.all_users %} {% if v.id == user.id %} {% set style="class=\"self\"" %} - {% set has_seen_v=true %} {% endif %} - {{format_user_in_table(user, style, loop.index, lb.value_func(user))}} + {{format_user_in_table(user, style, loop.index, lb.value_func(user), lb.user_relative_url)}} {% endfor %} - {% if position or not has_seen_v %} - {{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", lb.v_position, lb.v_value)}} + {% if lb.v_position %} + {{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", lb.v_position, lb.v_value, lb.user_relative_url)}} {% endif %}