<?xml version="1.0"?>
<kanban edit="false" import="false">
                    <field name="id"/>
                    <field name="mimetype"/>
                    <field name="type"/>
                    <templates>
                        <t t-name="menu">
                            <a t-attf-href="/web/content/ir.attachment/#{record.id.raw_value}/datas?download=true" download="" class="dropdown-item">Download</a>
                            <a t-if="widget.deletable" role="menuitem" type="delete" class="dropdown-item">Delete</a>
                        </t>
                        <t t-name="card" class="o_kanban_attachment flex-row">
                            <aside class="o_kanban_image m-1">
                                <div class="o_kanban_image_wrapper d-flex align-items-center justify-content-center">
                                    <t t-set="webimage" t-value="new RegExp('image.*(gif|jpeg|jpg|png|webp)').test(record.mimetype.value)"/>
                                    <div t-if="record.type.raw_value == 'url'" class="fa fa-link fa-3x text-muted" aria-label="Image is a link"/>
                                    <img t-elif="webimage" t-attf-src="/web/image/#{record.id.raw_value}" width="100" height="100" alt="Document" class="o_attachment_image"/>
                                    <div t-else="!webimage" class="o_image o_image_thumbnail" t-att-data-mimetype="record.mimetype.value"/>
                                </div>
                            </aside>
                            <main class="ms-1">
                                <div class="o_kanban_details_wrapper d-flex flex-column">
                                    <field name="name" class="text-truncate fw-bold fs-5"/>
                                    <div class="d-flex flex-grow-1 align-items-center">
                                        <t t-if="record.type.raw_value == 'url'">
                                            <i class="fa fa-globe" aria-label="Document url"/> <field name="url" widget="url"/>
                                        </t>
                                    </div>
                                    <div class="d-flex">
                                        <field name="create_date"/>
                                        <field name="create_uid" widget="many2one_avatar_user" class="ms-auto"/>
                                    </div>
                                </div>
                            </main>
                        </t>
                    </templates>
                </kanban>
            