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/hr_holidays/static/src/components/thread_icon | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/hr_holidays/static/src/components/thread_icon')
| -rw-r--r-- | addons/hr_holidays/static/src/components/thread_icon/thread_icon.scss | 11 | ||||
| -rw-r--r-- | addons/hr_holidays/static/src/components/thread_icon/thread_icon.xml | 13 |
2 files changed, 24 insertions, 0 deletions
diff --git a/addons/hr_holidays/static/src/components/thread_icon/thread_icon.scss b/addons/hr_holidays/static/src/components/thread_icon/thread_icon.scss new file mode 100644 index 00000000..4caabb3b --- /dev/null +++ b/addons/hr_holidays/static/src/components/thread_icon/thread_icon.scss @@ -0,0 +1,11 @@ +// ------------------------------------------------------------------ +// Style +// ------------------------------------------------------------------ + +.o_ThreadIcon_leaveOnline { + color: $o-enterprise-primary-color; +} + +.o_ThreadIcon_leaveOffline { + color: theme-color('warning'); +} diff --git a/addons/hr_holidays/static/src/components/thread_icon/thread_icon.xml b/addons/hr_holidays/static/src/components/thread_icon/thread_icon.xml new file mode 100644 index 00000000..f8a728a9 --- /dev/null +++ b/addons/hr_holidays/static/src/components/thread_icon/thread_icon.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + <t t-inherit="mail.ThreadIcon" t-inherit-mode="extension"> + <xpath expr="//*[@name='noImStatusCondition']" position="before"> + <t t-elif="thread.correspondent.im_status === 'leave_online'"> + <div class="o_ThreadIcon_leaveOnline fa fa-plane" title="Online"/> + </t> + <t t-elif="thread.correspondent.im_status === 'leave_offline'"> + <div class="o_ThreadIcon_leaveOffline fa fa-plane" title="Out of office"/> + </t> + </xpath> + </t> +</templates> |
