<?xml version="1.0" encoding="UTF-8" ?>
<!--
    Copyright 2025 Dixmit
    License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->
<templates xml:space="preserve">
    <!-- Moving some items from the chatter top bar for the mobile view -->
    <t
        t-name="web.Responsivemail.ChatterTopbar"
        t-inherit="mail.ChatterTopbar"
        owl="1"
        t-inherit-mode="extension"
    >

        <xpath
            expr="//button[hasclass('o_ChatterTopbar_buttonScheduleActivity')]/span  "
            position="attributes"
        >
            <attribute name="t-att-class">{
                'd-none': ui.isSmall
            }</attribute>
        </xpath>
        <xpath
            expr="//button[hasclass('o_ChatterTopbar_buttonSendMessage')]"
            position="inside"
        >
            <i
                class="fa fa-paper-plane me-1"
                role="img"
                aria-label="Send message"
                t-if="ui.isSmall"
            />
        </xpath>
        <xpath
            expr="//button[hasclass('o_ChatterTopbar_buttonLogNote')]"
            position="inside"
        >
            <i
                class="fa fa-sticky-note-o me-1"
                role="img"
                aria-label="Log note"
                t-if="ui.isSmall"
            />
        </xpath>
        <!-- We need to add an attribute to hide the text -->
        <xpath
            expr="//button[hasclass('o_ChatterTopbar_buttonSendMessage')]"
            position="attributes"
        >
            <attribute name="t-att-small">ui.isSmall</attribute>
        </xpath>
        <xpath
            expr="//button[hasclass('o_ChatterTopbar_buttonLogNote')]"
            position="attributes"
        >
            <attribute name="t-att-small">ui.isSmall</attribute>
        </xpath>
    </t>
</templates>
