<?xml version="1.0"?>
<t name="My Portal Docs Entry" t-name="portal.portal_docs_entry">
        <t t-set="force_show" t-value="placeholder_count and request.session.get('portal_counters', {}).get(placeholder_count) and not show_count"/>
        <div t-att-class="'o_portal_index_card ' +  ('' if force_show or config_card else 'd-none ') + ('col-12 order-0' if show_count else 'col-md-6 order-2')">
            <a t-att-href="url" t-att-title="title" t-attf-class="d-flex gap-2 gap-md-3 py-3 pe-2 px-md-3 h-100 rounded text-decoration-none #{bg_color if bg_color else 'bg-100'}">
                <div t-if="icon" class="o_portal_icon d-none">
                    <img t-attf-src="#{icon}"/>
                </div>
                <div t-att-class="'alert-link' if bg_color else ''">
                    <div t-attf-class="mt-0 mb-1 fs-5 fw-normal lh-1 #{'d-flex gap-2' if placeholder_count or count else ''}">
                        <t t-out="count"/>
                        <span t-if="placeholder_count and not force_show" t-att-class="'fw-bold' if show_count else 'd-none'" t-att-data-placeholder_count="placeholder_count"/>
                        <span t-out="title"/>
                    </div>
                    <div class="opacity-75">
                        <t t-out="text"/>
                    </div>
                </div>
            </a>
        </div>
    </t>

    