0.1.371 hide name_carrier if user not registered

This commit is contained in:
2024-04-12 16:21:11 +03:00
parent 89db74c782
commit 7daadc816c
2 changed files with 18 additions and 0 deletions

View File

@@ -90,7 +90,12 @@
<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 %}>
{% if user.is_authenticated %}
<span class="name_carrier">{{ route.owner.last_name }} {{ route.owner.first_name }}</span>
{% endif %}
{% if not user.is_authenticated %}
<span class="name_carrier hiden">{{ route.owner.last_name }} {{ route.owner.first_name }}</span>
{% endif %}
</div>
<div name="form_carrier">