<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="dms.DmsPathField" owl="1">

        <t t-set="path_length" t-value="data.length - 1" />
        <t t-foreach="data" t-as="elem" t-key="elem_index" style="display: inline">
            <t t-if="elem_index !== path_length">
                <span style="display: inline">/</span>
                <a
                    class="oe_form_uri"
                    data-model="dms.directory"
                    t-att-data-id="elem.id"
                    href="#"
                    t-on-click.prevent="(ev) => this._onNodeClicked(ev)"
                >
                    <t t-esc="elem.name" />
                </a>
            </t>
            <t t-else="">
                <span style="display: inline">/</span>
                <span style="display: inline">
                    <t t-esc="elem.name" />
                </span>
            </t>
        </t>
    </t>
</templates>
