From 3a2c16a6961475c0f1730a09570ac8ad1f13a2fa Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 25 May 2022 03:55:09 -0400 Subject: [PATCH] Userpage: fix display-none on own profile in 8a400a209b4a. With the changes in 8a400a209b4a, a bug was accidentally introduced which resulted in one's own profile being wrapped in a `display: none;` block due to a template conditional which caused the mobile
to not be closed when v.id != u.id (cf. userpage.html circa L489). Because the current conditional structure makes it hard to add an analogous profile--actionbtns div to mobile, it has been removed. --- files/templates/userpage.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index e6e8301d9a..a4ffd74e54 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -477,7 +477,6 @@ {% endif %} {% endfor %}
-
{% if v and v.id == u.id %} Edit profile Profile views @@ -510,7 +509,6 @@ Revert admin actions {% endif %} {% endif %} -