<?xml version="1.0"?>
<t name="Portal User Dropdown" t-name="portal.user_dropdown">
        <t t-nocache="Each user is different regardless of the page visited." t-nocache-_avatar="_avatar" t-nocache-_icon="_icon" t-nocache-_icon_class="_icon_class" t-nocache-_icon_wrap_class="_icon_wrap_class" t-nocache-_no_caret="_no_caret" t-nocache-_user_name="_user_name" t-nocache-_user_name_class="_user_name_class" t-nocache-_item_class="_item_class" t-nocache-_link_class="_link_class" t-nocache-_dropdown_menu_class="_dropdown_menu_class">
            <t t-set="is_connected" t-value="not user_id._is_public()"/>
            <li t-if="is_connected" t-attf-class="#{_item_class} o_no_autohide_item">
                <a href="#" role="button" data-bs-toggle="dropdown" t-attf-class="#{'' if _no_caret else 'dropdown-toggle'} #{_link_class}">
                    <t t-if="_avatar">
                        <t t-set="avatar_source" t-value="image_data_uri(user_id.avatar_256)"/>
                        <img t-att-src="avatar_source" t-attf-class="rounded-circle o_object_fit_cover #{_avatar_class}" width="24" height="24" alt="" loading="eager"/>
                    </t>
                    <div t-if="_icon" t-attf-class="#{_icon_wrap_class}">
                        <i t-attf-class="fa fa-1x fa-fw fa-user #{_icon_class}"/>
                    </div>
                    <span t-if="_user_name" t-attf-class="#{_user_name_class}" t-esc="user_id.name[:23] + '...' if user_id.name and len(user_id.name) &gt; 25 else user_id.name"/>
                </a>
                <div t-attf-class="dropdown-menu js_usermenu #{_dropdown_menu_class}" role="menu">
                    <a groups="base.group_user" href="/odoo" role="menuitem" class="dropdown-item ps-3" id="o_backend_user_dropdown_link">
                        <i class="fa fa-fw fa-th me-1 small text-primary-emphasis"/> Apps
                    </a>
                    <div id="o_logout_divider" class="dropdown-divider"/>
                    <a t-attf-href="/web/session/logout?redirect=/" role="menuitem" id="o_logout" class="dropdown-item ps-3">
                        <i class="fa fa-fw fa-sign-out me-1 small text-primary-emphasis"/> Logout
                    </a>
                </div>
            </li>
        </t>
    </t>

    