summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/follower/follower.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/static/src/components/follower/follower.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mail/static/src/components/follower/follower.xml')
-rw-r--r--addons/mail/static/src/components/follower/follower.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/follower/follower.xml b/addons/mail/static/src/components/follower/follower.xml
new file mode 100644
index 00000000..5cdc89d7
--- /dev/null
+++ b/addons/mail/static/src/components/follower/follower.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+
+ <t t-name="mail.Follower" owl="1">
+ <div class="o_Follower">
+ <t t-if="follower">
+ <a class="o_Follower_details" t-att-class="{ 'o-inactive': !follower.isActive }" href="#" t-on-click="_onClickDetails">
+ <img class="o_Follower_avatar" t-attf-src="/web/image/{{ follower.resModel }}/{{ follower.resId }}/image_128" alt="Avatar"/>
+ <span class="o_Follower_name" t-esc="follower.name or follower.displayName"/>
+ </a>
+ <t t-if="follower.isEditable">
+ <button class="btn btn-icon o_Follower_button o_Follower_editButton" title="Edit subscription" t-on-click="_onClickEdit">
+ <i class="fa fa-pencil"/>
+ </button>
+ <button class="btn btn-icon o_Follower_button o_Follower_removeButton" title="Remove this follower" t-on-click="_onClickRemove">
+ <i class="fa fa-remove"/>
+ </button>
+ </t>
+ </t>
+ </div>
+ </t>
+
+</templates>