blob: 8f06bf394fa3b95f462473e07cbced976386ab95 (
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
48
49
50
|
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mail.ThreadView" owl="1">
<div class="o_ThreadView" t-att-data-correspondent-id="threadView and threadView.thread and threadView.thread.correspondent and threadView.thread.correspondent.id" t-att-data-thread-local-id="threadView and threadView.thread and threadView.thread.localId">
<t t-if="threadView">
<t t-if="threadView.isLoading and !threadView.threadCache.isLoaded" name="loadingCondition">
<div class="o_ThreadView_loading">
<span><i class="o_ThreadView_loadingIcon fa fa-spinner fa-spin" title="Loading..." role="img"/>Loading...</span>
</div>
</t>
<t t-elif="threadView.threadCache.isLoaded or threadView.thread.isTemporary">
<MessageList
class="o_ThreadView_messageList"
getScrollableElement= "props.getScrollableElement"
hasMessageCheckbox="props.hasMessageCheckbox"
hasScrollAdjust="props.hasScrollAdjust"
hasSquashCloseMessages="props.hasSquashCloseMessages"
haveMessagesMarkAsReadIcon="props.haveMessagesMarkAsReadIcon"
haveMessagesReplyIcon="props.haveMessagesReplyIcon"
order="props.order"
selectedMessageLocalId="props.selectedMessageLocalId"
threadViewLocalId="threadView.localId"
t-ref="messageList"
/>
</t>
<t t-elif="props.hasComposer">
<div class="o-autogrow"/>
</t>
<t t-if="props.hasComposer">
<Composer
class="o_ThreadView_composer"
attachmentsDetailsMode="props.composerAttachmentsDetailsMode"
composerLocalId="threadView.thread.composer.localId"
hasCurrentPartnerAvatar="props.hasComposerCurrentPartnerAvatar"
hasSendButton="props.hasComposerSendButton"
hasThreadTyping="props.hasComposerThreadTyping"
isCompact="(threadView.thread.model === 'mail.channel' and threadView.thread.mass_mailing) ? false : undefined"
isDoFocus="props.isDoFocus"
showAttachmentsExtensions="props.showComposerAttachmentsExtensions"
showAttachmentsFilenames="props.showComposerAttachmentsFilenames"
textInputSendShortcuts="threadView.textInputSendShortcuts"
t-ref="composer"
/>
</t>
</t>
</div>
</t>
</templates>
|