<commit_before>{{#partial "page"}}
<div class="account">
    {{> components/common/breadcrumbs breadcrumbs=breadcrumbs}}
    <h2 class="page-heading">{{lang 'account.recent_items.heading' }}</h2>
    {{> components/account/navigation account_page='recent_items'}}

    {{#unless customer.recently_viewed_products.items}}
        {{> components/common/alert-generic (lang 'account.recent_items.no_items')}}
    {{/unless}}

    <form action="/compare" method="post">
        {{> components/products/grid products=customer.recently_viewed_products.items}}
        {{#if show_compare}}
            <button class="button button--primary" type="submit">{{lang 'compare.button'}}</button>
        {{/if}}
    </form>
</div>
{{/partial}}
{{> layout/base}}<commit_msg>BIG-21483 - Add to cart for recent items * Add context for show_compare<commit_after>{{#partial "page"}}
<div class="account">
    {{> components/common/breadcrumbs breadcrumbs=breadcrumbs}}
    <h2 class="page-heading">{{lang 'account.recent_items.heading' }}</h2>
    {{> components/account/navigation account_page='recent_items'}}

    {{#unless customer.recently_viewed_products.items}}
        {{> components/common/alert-generic (lang 'account.recent_items.no_items')}}
    {{/unless}}

    <form action="/compare" method="post">
        {{> components/products/grid products=customer.recently_viewed_products.items show_compare=customer.recently_viewed_products.show_compare}}
        {{#if customer.recently_viewed_products.show_compare}}
            <button class="button button--primary" type="submit">{{lang 'compare.button'}}</button>
        {{/if}}
    </form>
</div>
{{/partial}}
{{> layout/base}}
{'fraction_non_alphanumeric': 0.17464114832535885, 'fraction_numerical': 0.005382775119617225, 'mean_word_length': 4.467320261437909, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4542958', 'n_tokens_mistral': 531, 'n_tokens_neox': 509, 'n_words': 80}