This commit is contained in:
Egor Matveev
2021-11-20 15:24:37 +03:00
parent b4ca90188b
commit 9a20711820
6 changed files with 24 additions and 9 deletions

View File

@@ -79,7 +79,7 @@
<h2><i class="fa fa-desktop"></i></h2>
</td>
<td><div style="width: 20px;"></div></td>
<td>
<td><p style="padding-top: 8px; font-size: 24px;">
{% if owner %}
<form method="POST">
{% csrf_token %}
@@ -92,13 +92,13 @@
</select>
</form>
{% else %}
{% if account.favourite_language_id %}
yes
{% if account.userinfo.has_favourite_language %}
<img src="{{ account.userinfo.favourite_language.logo_url }}" height="24px" width="24px"> {{ account.userinfo.favourite_language.name }}
{% else %}
no
Предпочитаемый язык отсутствует
{% endif %}
{% endif %}
</td>
</p></td>
</tr>
</table>

View File

@@ -17,8 +17,11 @@
<td style="text-align: center; vertical-align: middle; width: 70px;">
{{ u.userinfo.place }}
</td>
<td style="vertical-align: middle;">
<img src="{{ u.userinfo.profile_pic_url }}" width="50px" height="50px" style="border-radius: 50%;">
<td style="vertical-align: middle; width: 800px;">
<img src="{{ u.userinfo.profile_pic_url }}" width="50px" height="50px" style="border-radius: 50%; margin-right: 10px;">
{% if u.userinfo.has_favourite_language %}
<img src="{{ u.userinfo.favourite_language.logo_url }}" width="18px" height="18px" style="margin-top: 40px; margin-left: -30px;">
{% endif %}
<a href="/account?username={{ u.username }}">{{ u.username }}</a>
</td>
<td style="vertical-align: middle;">