summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/follower/follower.xml
blob: 5cdc89d7c961da6873c7227a0746eac58eab1862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>