<?xml version="1.0"?>
<t name="Public spreadsheet layout" t-name="spreadsheet.public_spreadsheet_layout">
    <t t-call="web.layout">
        <t t-set="head">
            <script>
                odoo.__session_info__ = <t t-out="json.dumps(session_info)"/>;
                odoo.__session_info__.spreadsheet_public_props = <t t-out="json.dumps(props)"/>;
            </script>
            <t t-call-assets="spreadsheet.public_spreadsheet"/>
        </t>
        <div class="d-flex flex-column justify-content vh-100 o-public-spreadsheet">
            <header class="container-fluid p-0 d-flex align-items-center justify-content-between border-bottom">
                <div t-out="spreadsheet_name" class="text-primary fw-bold ps-3"/>
                <div class="fst-italic flex-fill ps-3">
                    <t t-if="is_frozen">Frozen and copied on <span t-field="share.create_date"/></t>
                    <div class="d-inline-flex" t-if="props['downloadExcelUrl']">
                        <a class="btn btn-secondary btn-block o_download_btn" t-att-href="props['downloadExcelUrl']" title="Download"><i class="fa fa-download"/></a>
                    </div>
                </div>
                <div class="nav d-table my-auto">
                    <t t-call="portal.user_dropdown">
                        <t t-set="_user_name" t-value="True"/>
                        <t t-set="_item_class" t-valuef="nav-item d-table-cell text-center"/>
                        <t t-set="_link_class" t-valuef="nav-link fw-bold"/>
                    </t>
                    <t t-call="portal.user_sign_in_redirect">
                        <t t-set="_item_class" t-valuef="nav-item d-table-cell text-center"/>
                        <t t-set="_link_class" t-valuef="nav-link fw-bold"/>
                    </t>
                </div>
            </header>
            <main id="spreadsheet-mount-anchor" class="flex-fill"/>
        </div>
    </t>
</t>

