profile curtain reformat
This commit is contained in:
SDE
2023-11-05 18:48:58 +03:00
parent 6dd0cf7724
commit 114a65746c
3 changed files with 130 additions and 70 deletions

View File

@@ -0,0 +1,27 @@
<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 page_name == sel_page_name %}
class="selected"
{% endif %} >
<img class="svg" src="{{ img_path }}" />
{% if page_type and page_type == 'profile' %}
<span class="text_btn_profile">
{% else %}
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
{% endif %}
{{ title }}
{% if page_name == 'chat' or page_name == 'support' %}
<div class="icon_unread_messages" style="padding-top: 0;">
<div class="cost-messages-in-user-tab-messenger">
<span class="unredmessages_value_text" style="padding-top: 2px;padding-left: 0;"></span>
</div>
</div>
{% endif %}
{% if page_type and page_type == 'profile' %}
</span>
{% else %}
</a>
{% endif %}
</div>