Userpage: fix display-none on own profile in 8a400a209b.

With the changes in 8a400a209b, 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
<div id="profile--actionbtns"> 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.
remotes/1693045480750635534/spooky-22
Snakes 2022-05-25 03:55:09 -04:00
parent 74f8859aa2
commit 3a2c16a696
1 changed files with 0 additions and 2 deletions

View File

@ -477,7 +477,6 @@
{% endif %}
{% endfor %}
</div>
<div id="profile--actionbtns">
{% if v and v.id == u.id %}
<a href="/settings/profile" class="btn btn-secondary ">Edit profile</a>
<a href="/views" class="btn btn-secondary">Profile views</a>
@ -510,7 +509,6 @@
<a class="btn btn-primary" role="button" onclick="post_toast(this,'/@{{u.username}}/revert_actions')">Revert admin actions</a>
{% endif %}
{% endif %}
</div>
<form class="d-none toggleable" id='message-mobile' action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
<pre></pre>