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/widgets/common.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/mail/static/src/widgets/common.xml')
| -rw-r--r-- | addons/mail/static/src/widgets/common.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/addons/mail/static/src/widgets/common.xml b/addons/mail/static/src/widgets/common.xml new file mode 100644 index 00000000..9106f96f --- /dev/null +++ b/addons/mail/static/src/widgets/common.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + + <!-- + AKU FIXME: use mail/static/src/components/partner_im_status_icon/partner_im_status_icon.js component instead + @param {string} status + --> + <t t-name="mail.widgets.UserStatus"> + <span> + <t t-if="status == 'online'"> + <i class="o_mail_user_status o_user_online fa fa-circle" title="Online" role="img" aria-label="User is online"/> + </t> + <t t-if="status == 'away'"> + <i class="fa fa-circle o_mail_user_status o_user_idle" title="Idle" role="img" aria-label="User is idle"/> + </t> + <t t-if="status == 'offline'"> + <i class="o_mail_user_status fa fa-circle-o" title="Offline" role="img" aria-label="User is offline"/> + </t> + <t t-if="status == 'bot'"> + <i class="o_mail_user_status o_user_online fa fa-heart" title="Bot" role="img" aria-label="User is a bot"/> + </t> + </span> + </t> + +</templates> |
