{% load static %}
<div class="tab_user_messanger{% if item.id == cur_receiver.id %} select{% endif %}" onclick="selectedUserMessenger(null,{{ item.id }})" data-cur-receiver-item="{{ item.id }}">
    <div class="left-part-tab-user">
        <img class="user_avatar_messenger" src="{% if item.user_profile.avatar %}{{ MEDIA_URL }}{{ item.user_profile.avatar }}{% else %}{% static "img/svg/user_icon_standart.png" %}{% endif %}" alt="{{ item.user_profile }}" />
        <div class="status_user">
        </div>
    </div>
    <div class="center-part-tab-user">
        <span class="user_name_messenger">{{ item.last_name }} {{ item.first_name }}</span>
        <span class="last-message-messenger-user-tab">{{ item.last_msg }}</span>
    </div>
    {% if item.unread_msgs_count %}
        <div class="right-part-tab-user">
            <div class="cost-messages-in-user-tab-messenger"><span>{{ item.unread_msgs_count }}</span></div>
        </div>
    {% endif %}
</div>