This commit is contained in:
SBD
2023-11-25 12:48:15 +03:00
parent 5081b6ce3e
commit 0aae04eca8
5 changed files with 47 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<div
{% if dom_id %}id="{{ dom_id }}"{% endif %}
{% if ajax_url %}onclick="select_tab_profile(this,'{{ ajax_url }}'{% if owner_type %},'{{ owner_type }}'{% endif %})"{% endif %}
{% if ajax_url and page_type == 'profile' %}onclick="select_tab_profile(this,'{{ ajax_url }}'{% if owner_type %},'{{ owner_type }}'{% endif %})"{% endif %}
{% if page_name == sel_page_name %}
class="selected"
{% endif %} >
@@ -9,13 +9,16 @@
{% if page_type and page_type == 'profile' or not sel_page_name %}
{% if sel_page_name == 'logout' %}
<a href="/profile/logout/" class="text_btn_profile">
<a href="/profile/logout/" class="text_btn_profile logout">
<span class="logout_span">
{% else %}
<span class="text_btn_profile">
{% endif %}
{% else %}
{% if sel_page_name != 'logoout' %}
{% if sel_page_name == 'logout' %}
<a href="/profile/logout/" class="text_btn_profile logout">
<span class="logout_span">
{% elif sel_page_name != 'logoout' %}
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
{% endif %}
{% endif %}
@@ -29,6 +32,7 @@
{% endif %}
{% if page_type and page_type == 'profile' or not sel_page_name %}
{% if sel_page_name == 'logout' %}
</span>
</a>
{% else %}
</span>