<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="fusion_accounting.AccountReportEllipsis">
        <t t-call="{{ env.template('AccountReportEllipsis') }}"/>
    </t>

    <t t-name="fusion_accounting.AccountReportEllipsisCustomizable">
        <t t-if="props.type === 'string'">
            <div class="name">
                <t t-out="(props.name) ? props.name.substring(0, props.maxCharacters) : ''"/>
            </div>

            <t t-if="triggersEllipsis">
                <button
                    class="btn btn_ellipsis"
                    t-on-click="(ev) => this.showEllipsisPopover(ev)"
                >
                    <i class="fa fa-ellipsis-h"/>
                </button>
            </t>
        </t>
        <t t-else="">
            <div class="name">
                <t t-out="props.name"/>
            </div>
        </t>
    </t>
</templates>
