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

<t t-name="website.RedirectField">
    <button type="button" class="btn oe_stat_button btn-outline-secondary flex-grow-1 flex-lg-grow-0"
        t-on-click="onClick"
        t-att-aria-label="info"
        t-att-title="info">
        <t t-set="textClass" t-if="Object.hasOwn(this.props.record.data, 'publish_on') and this.props.record.data.publish_on">text-warning</t>
        <t t-set="textClass" t-elif="this.props.record.data[this.props.name]">text-success</t>
        <t t-set="textClass" t-else="">text-danger</t>
        <i class="fa fa-fw o_button_icon fa-globe" t-att-class="textClass"/>
        <div class="o_stat_info">
            <span class="o_stat_text">Go to<br/>Website</span>
        </div>
    </button>
</t>

</templates>
