This commit is contained in:
2023-11-11 15:30:32 +03:00
parent 95c3c062fd
commit 335af09596
3 changed files with 11 additions and 4 deletions

View File

@@ -26,7 +26,7 @@
{% with sel_page_name='change_profile' ajax_url="change_profile" title="Мой профиль" img_path="/static/img/svg/User.svg"%}
{% include "widgets/profile/w_button_for_profile_menu.html" %}
{% endwith %}
{% with sel_page_name='create_route_for_mover' title="Выход"%}
{% with sel_page_name='create_route_for_mover' sel_page_name='logout' title="Выход"%}
{% include "widgets/profile/w_button_for_profile_menu.html" %}
{% endwith %}
{# <div>#}

View File

@@ -9,7 +9,12 @@
{% if page_type and page_type == 'profile' or not sel_page_name %}
<span class="text_btn_profile">
{% else %}
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
{% if sel_page_name == 'logout' %}
<a href="{% url "profile" sel_page_name %}" class="text_btn_profile">
{% endif %}
{% if sel_page_name != 'logoout' %}
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
{% endif %}
{% endif %}
{{ title }}
{% if page_name == 'chat' or page_name == 'support' %}