summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/notification_list/notification_list.xml
blob: e3bfbf38c9fa69a2c52cb3eea15cbff55a7a6c19 (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
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="mail.NotificationList" owl="1">
        <div class="o_NotificationList" t-att-class="{ 'o-empty': notifications.length === 0 }">
            <t t-if="notifications.length === 0">
                <div class="o_NotificationList_noConversation">
                    No conversation yet...
                </div>
            </t>
            <t t-else="">
                <t t-foreach="notifications" t-as="notification" t-key="notification.uniqueId">
                    <t t-if="notification.type === 'thread' and notification.thread">
                        <ThreadPreview
                            class="o_NotificationList_preview"
                            t-att-class="{ 'o-mobile': env.messaging.device.isMobile }"
                            threadLocalId="notification.thread.localId"
                        />
                    </t>
                    <t t-if="notification.type === 'thread_needaction' and notification.thread">
                        <ThreadNeedactionPreview
                            class="o_NotificationList_preview"
                            t-att-class="{ 'o-mobile': env.messaging.device.isMobile }"
                            threadLocalId="notification.thread.localId"
                        />
                    </t>
                    <t t-if="notification.notificationGroup">
                        <NotificationGroup
                            class="o_NotificationList_group"
                            notificationGroupLocalId="notification.notificationGroup.localId"
                        />
                    </t>
                    <t t-if="notification.type === 'odoobotRequest'">
                        <NotificationRequest
                            class="o_NotificationList_notificationRequest"
                            t-att-class="{ 'o-mobile': env.messaging.device.isMobile }"
                        />
                    </t>
                    <t t-if="!notification_last">
                        <div class="o_NotificationList_separator"/>
                    </t>
                </t>
            </t>
        </div>
    </t>

</templates>