0.1.347 update show_contact button behavior
This commit is contained in:
@@ -1496,6 +1496,17 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.open_inf_carrier{
|
||||||
|
display: block;
|
||||||
|
width: 88%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.show_contact_wrapper {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.open_inf_carrier:hover{
|
.open_inf_carrier:hover{
|
||||||
background: #FF613A;
|
background: #FF613A;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|||||||
@@ -1741,7 +1741,6 @@ div.departure_arrival>div>input{
|
|||||||
.input_list::-webkit-scrollbar-thumb {
|
.input_list::-webkit-scrollbar-thumb {
|
||||||
background-color: #FF613A;
|
background-color: #FF613A;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -101,13 +101,32 @@
|
|||||||
{# <div>{{ route.id }},{{ forloop.counter }}</div>#}
|
{# <div>{{ route.id }},{{ forloop.counter }}</div>#}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% if route.owner != user %}
|
|
||||||
<button class="open_chat_carrier" onclick="open_chat({{ route.owner_id }})">
|
{% if not user.is_anonymous and route.owner != user %}
|
||||||
<img src="{% static "img/svg/Logo.svg" %}" width="30px">
|
<button class="open_chat_carrier" onclick="open_chat({{ route.owner_id }})">
|
||||||
<span> {% translate "Написать сообщение" %}</span>
|
<img src="{% static "img/svg/Logo.svg" %}" width="30px">
|
||||||
{# <img src="{% static "/img/svg/email.svg" %}" width="25px" style="position:relative;left: 3px;">#}
|
<span> {% translate "Написать сообщение" %}</span>
|
||||||
|
{# <img src="{% static "/img/svg/email.svg" %}" width="25px" style="position:relative;left: 3px;">#}
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<button
|
||||||
|
class="open_inf_carrier"
|
||||||
|
onclick="show_inf_carrier(this)"
|
||||||
|
>
|
||||||
|
{% translate "Открыть контакт"%}
|
||||||
</button>
|
</button>
|
||||||
<button class="open_inf_carrier" onclick="show_inf_carrier(this)">{% translate "Открыть контакт"%}</button>
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if not user.is_authenticated %}
|
||||||
|
<div class="show_contact_wrapper">
|
||||||
|
<a class="open_inf_carrier" href='{% url "registration_page" %}'>
|
||||||
|
{% translate "Открыть контакт"%}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user