<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Taras Shabaranskyi
     License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<templates>
    <t
        t-name="web_responsive.Chatter"
        t-inherit="mail.Chatter"
        t-inherit-mode="extension"
    >
        <xpath expr="//SuggestedRecipientsList" position="attributes">
            <attribute name="styleString">''</attribute>
        </xpath>
        <xpath
            expr="//button[hasclass('o-mail-Chatter-sendMessage')]"
            position="replace"
        >
            <button
                class="o-mail-Chatter-sendMessage btn text-nowrap me-1"
                t-att-class="{
                'btn-secondary': state.composerType !== 'message',
                'btn-primary active': state.composerType === 'message',
                'my-2': !props.compactHeight
            }"
                t-att-disabled="!state.thread.hasWriteAccess and !(state.thread.hasReadAccess and state.thread.canPostOnReadonly) and props.threadId"
                data-hotkey="m"
                t-on-click="() => this.toggleComposer('message')"
            >
                <i class="fa fa-envelope me-sm-1" />
                <span class="d-none d-sm-inline">Send message</span>
            </button>
        </xpath>
        <xpath expr="//button[hasclass('o-mail-Chatter-logNote')]" position="replace">
            <button
                class="o-mail-Chatter-logNote btn text-nowrap me-2"
                t-att-class="{
                'btn-primary active': state.composerType === 'note',
                'btn-secondary': state.composerType !== 'note',
                'my-2': !props.compactHeight
            }"
                t-att-disabled="!state.thread.hasWriteAccess and !(state.thread.hasReadAccess and state.thread.canPostOnReadonly) and props.threadId"
                data-hotkey="shift+m"
                t-on-click="() => this.toggleComposer('note')"
            >
                <i class="fa fa-sticky-note me-sm-1" />
                <span class="d-none d-sm-inline">Log note</span>
            </button>
        </xpath>
        <xpath
            expr="//button[hasclass('o-mail-Chatter-activity')]/span"
            position="before"
        >
            <i class="fa fa-clock-o me-sm-1" />
        </xpath>
        <xpath
            expr="//button[hasclass('o-mail-Chatter-activity')]/span"
            position="attributes"
        >
            <attribute name="class" add="d-none d-sm-inline" separator=" " />
        </xpath>
    </t>
</templates>
