Complete registration, small update profile.html

This commit is contained in:
Sokurov Idar
2021-02-16 22:32:29 +03:00
parent f2a4d06a10
commit 21ab4bf6cc
4 changed files with 90 additions and 85 deletions

View File

@@ -14,8 +14,8 @@
.img{
width:auto;
height:auto;
max-width:300px!important;
max-height:500px!important;
max-width:100px!important;
max-height:100px!important;
}
@@ -28,8 +28,8 @@
<div class="row">
<div class="col-auto">
<div class="container">
{% if image_name %}
<img src="{% static image_name %}" class="img img-thumbnail" alt="Аватар">
{% if image_url %}
<img src={{image_url}} class="img img-thumbnail" alt="Аватар">
{% else %}
<img src="{% static 'no_avatar.png' %}" class="img img-thumbnail" alt="Нет изображения">
{% endif %}