summaryrefslogtreecommitdiff
path: root/addons/snailmail/static/src/components/message/message.xml
blob: d563083fc1596a284619dd082832765f4eb6d6f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-inherit="mail.Message" t-inherit-mode="extension">
        <xpath expr="//*[@name='failureIcon']" position="replace">
            <t t-if="message.message_type === 'snailmail'">
                <i class="o_Message_notificationIcon fa fa-paper-plane"/>
            </t>
            <t t-else="">$0</t>
        </xpath>

        <xpath expr="//*[@name='notificationIcon']" position="replace">
            <t t-if="message.message_type === 'snailmail'">
                <i class="o_Message_notificationIcon fa fa-paper-plane"/>
            </t>
            <t t-else="">$0</t>
        </xpath>

        <xpath expr="//*[@name='rootCondition']" position="inside">
            <t t-if="snailmailState.hasDialog">
                <SnailmailErrorDialog messageLocalId="message.localId" t-on-dialog-closed="_onDialogClosedSnailmailError"/>
            </t>
        </xpath>

        <!--
            It was decided that the information displayed for snailmail messages
            has to be different than for standard messages, see task-1907998.
        -->
        <xpath expr="//NotificationPopover" position="replace">
            <t t-if="message.message_type === 'snailmail'">
                <SnailmailNotificationPopover messageLocalId="message.localId"/>
            </t>
            <t t-else="">$0</t>
        </xpath>
    </t>

</templates>