minor cosmetic fixes on profiles

pull/83/head
Aevann 2022-12-30 09:47:29 +02:00
parent 2b89cdf251
commit 3e353ccf47
1 changed files with 4 additions and 6 deletions

View File

@ -190,7 +190,7 @@
{% if v and v.id == u.id %}
<form id="upload-profile-background" action="/settings/profile_background" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v|formkey}}">
<label class="format btn btn-primary" for="upload-profile-background-file" style="margin-bottom:0!important">
<label class="btn btn-primary" for="upload-profile-background-file" style="margin-bottom:0!important">
<i class="fas fa-image mr-1"></i>
{% if v.profile_background -%}
{{v.profile_background}}
@ -405,11 +405,11 @@
<button type="button" class="btn btn-secondary" onclick="toggle()" {% if v.id == u.id %}style="margin-bottom:0!important;padding:0.3rem 0.75rem!important"{% endif %}><i class="fas fa-music mr-1"></i> Toggle Anthem</button>
{% endif %}
{% if v and v.id == u.id and v.profile_background %}
{% if v and v.id == u.id %}
<div>
<form class="mt-3" id="upload-profile-background-mobile" action="/settings/profile_background" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v|formkey}}">
<label class="format btn btn-primary" for="upload-profile-background-file-mobile" style="margin-bottom:0!important">
<label class="btn btn-primary" for="upload-profile-background-file-mobile" style="margin-bottom:0!important">
<i class="fas fa-image mr-1"></i>
{% if v.profile_background %}
{{v.profile_background}}
@ -430,9 +430,7 @@
{%- endif %}
</div>
{% else %}
<pre>
</pre>
<br>
{% endif %}
{% if v and v.id != u.id %}