diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/static/src/components/chatter/chatter.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/mail/static/src/components/chatter/chatter.xml')
| -rw-r--r-- | addons/mail/static/src/components/chatter/chatter.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/chatter/chatter.xml b/addons/mail/static/src/components/chatter/chatter.xml new file mode 100644 index 00000000..d9cf20b4 --- /dev/null +++ b/addons/mail/static/src/components/chatter/chatter.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + + <t t-name="mail.Chatter" owl="1"> + <div class="o_Chatter"> + <t t-if="chatter"> + <div class="o_Chatter_fixedPanel"> + <ChatterTopbar + class="o_Chatter_topbar" + chatterLocalId="chatter.localId" + /> + <t t-if="chatter.threadView and chatter.isComposerVisible"> + <Composer + class="o_Chatter_composer" + t-att-class="{ 'o-bordered': chatter.hasExternalBorder }" + composerLocalId="chatter.thread.composer.localId" + hasFollowers="true" + hasMentionSuggestionsBelowPosition="true" + isCompact="false" + isExpandable="true" + textInputSendShortcuts="['ctrl-enter', 'meta-enter']" + t-on-o-message-posted="_onComposerMessagePosted" + t-ref="composer" + /> + </t> + </div> + <div class="o_Chatter_scrollPanel" t-on-scroll="_onScrollPanelScroll" t-ref="scrollPanel"> + <t t-if="chatter.isAttachmentBoxVisible"> + <AttachmentBox + class="o_Chatter_attachmentBox" + threadLocalId="chatter.thread.localId" + /> + </t> + <t t-if="chatter.thread and chatter.hasActivities and chatter.thread.activities.length > 0"> + <ActivityBox + class="o_Chatter_activityBox" + chatterLocalId="chatter.localId" + /> + </t> + <t t-if="chatter.threadView"> + <ThreadView + class="o_Chatter_thread" + getScrollableElement="getScrollableElement" + hasComposer="false" + hasScrollAdjust="chatter.hasMessageListScrollAdjust" + order="'desc'" + threadViewLocalId="chatter.threadView.localId" + t-ref="thread" + /> + </t> + </div> + </t> + </div> + </t> + +</templates> |
