From 0ff7a27c90f0f21b3949ebb6b0943d8d836917ec Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Thu, 4 Jul 2024 14:00:42 +0200 Subject: [PATCH] add collapsed option to username rendering, remove redundant link, don't show own reputation --- app/templates/base.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 58379fd2..77b984ba 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -3,22 +3,25 @@ {% if user.deleted -%} [deleted] {% else -%} - {% if user.avatar_id and not low_bandwidth -%} - - - {% endif -%} - {{ user.display_name() }} + + {% if user.avatar_id and not low_bandwidth and not collapsed -%} + + {% endif -%} + {{ user.display_name() }} + {% if user.created_recently() -%} {% endif -%} {% if user.bot -%} {% endif -%} - {% if user.reputation < -10 -%} - - - {% elif user.reputation < 0 -%} - + {% if user.id != current_user.id -%} + {% if user.reputation < -10 -%} + + + {% elif user.reputation < 0 -%} + + {% endif -%} {% endif -%} {% endif -%}