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

@@ -1576,6 +1576,19 @@ a.open_inf_carrier{
left: 4px;
}
.name_carrier.hiden{
top: 6px;
/* background: linear-gradient(99deg, #040404 56%, #9f9f9f 25%, #ffffff); */
background: linear-gradient(99deg, #000000 1%, #ffffff 16%, #ffffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: 200ms;
width: calc(90% - 10px);
overflow: hidden;
padding-right: 10px;
white-space: nowrap;
}
.from-to-city-text{
font-size: 14px;
color: #27242499;

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">