0.1.347 update show_contact button behavior
This commit is contained in:
@@ -101,13 +101,32 @@
|
||||
{# <div>{{ route.id }},{{ forloop.counter }}</div>#}
|
||||
</a>
|
||||
</div>
|
||||
{% if route.owner != user %}
|
||||
<button class="open_chat_carrier" onclick="open_chat({{ route.owner_id }})">
|
||||
<img src="{% static "img/svg/Logo.svg" %}" width="30px">
|
||||
<span> {% translate "Написать сообщение" %}</span>
|
||||
{# <img src="{% static "/img/svg/email.svg" %}" width="25px" style="position:relative;left: 3px;">#}
|
||||
|
||||
{% if not user.is_anonymous and route.owner != user %}
|
||||
<button class="open_chat_carrier" onclick="open_chat({{ route.owner_id }})">
|
||||
<img src="{% static "img/svg/Logo.svg" %}" width="30px">
|
||||
<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 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 %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user