<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

<!-- TODO master: remove this template -->
<t t-name="website.PageKanbanRenderer" t-inherit="web.KanbanRenderer">
    <xpath expr="//t[@t-if='groupOrRecord.group']//KanbanRecord" position="attributes">
        <attribute name="t-if">recordFilter(record, props.list.records)</attribute>
        <attribute name="t-if"/><!-- stable way to cancel the above `t-if` -->
    </xpath>
    <xpath expr="//div/t/t[@t-else='']/KanbanRecord" position="attributes">
        <attribute name="t-if">recordFilter(groupOrRecord.record, props.list.records)</attribute>
        <attribute name="t-if"/><!-- stable way to cancel the above `t-if` -->
    </xpath>
</t>

<!-- TODO master: remove this xpath -->
<t t-name="website.PageKanbanView" t-inherit="web.KanbanView">
    <xpath expr="//t[@t-component='props.Renderer']" position="attributes">
        <attribute name="activeWebsite">state.activeWebsite</attribute>
    </xpath>
    <xpath expr="//SearchBar" position="inside">
        <t t-set-slot="search-bar-additional-menu">
            <t t-call="website.RecordFilter"/>
        </t>
    </xpath>
</t>

</templates>
