0.0.309 upd avatar for routes

This commit is contained in:
2023-12-05 13:37:17 +03:00
parent f7783c070b
commit 89b57feb4e
3 changed files with 15 additions and 2 deletions

View File

@@ -638,6 +638,14 @@ header .header-second {
cursor: pointer;
}
.route_contact_avatar{
object-fit: cover;
height: 40px;
width: 40px;
border-radius: 10px;
aspect-ratio: 4/3;
}
.header-second-item,
.cont_header_btn_profile,

View File

@@ -69,9 +69,12 @@
{% endif %}
</div>
<div>
<img src="{% static "/delete_later/Avatar.png" %}">
<img class="route_contact_avatar" {% if route.owner.user_profile.avatar %}
src="{{ route.owner.user_profile.avatar.url }}"
{% else %}src="{% static "img/svg/user_icon_standart.png" %}"{% endif %}>
<span class="name_carrier">{{ route.owner.last_name }} {{ route.owner.first_name }}</span>
</div>
<div name="form_carrier">
<div class="inf_carrier">
<a class="phones_carrier" data-href="tel:{{ route.phone }}">

View File

@@ -61,7 +61,9 @@
{% endif %}
</div>
<div>
<img src="{% static "/delete_later/Avatar.png" %}">
<img class="route_contact_avatar" {% if route.owner.user_profile.avatar %}
src="{{ route.owner.user_profile.avatar.url }}"
{% else %}src="{% static "img/svg/user_icon_standart.png" %}"{% endif %}>
<span class="name_carrier">{{ route.owner.last_name }} {{ route.owner.first_name }}</span>
</div>
<div name="form_carrier">