<commit_before>
<div class="modal-content" data-test-modal="limits/custom-theme">
    <header class="modal-header">
        <h1>Upgrade to enable custom themes</h1>
    </header>
    <button class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>

    <div class="modal-body">
        <p>
            {{#if @data.message}}
                {{html-safe @data.message}}
            {{else}}
                Your current plan only supports official themes. You can install them from the <a href="https://ghost.org/marketplace/">Ghost theme marketplace</a>.
            {{/if}}
        </p>
    </div>

    <div class="modal-footer">
        <button {{on "click" @close}} class="gh-btn" data-test-button="cancel-upgrade">
            <span>Cancel</span>
        </button>

        <LinkTo @route="pro" class="gh-btn gh-btn-green" data-test-button="upgrade-plan">
            <span>Upgrade</span>
        </LinkTo>
    </div>
</div><commit_msg>Fixed upgrade button not closing modal when attempting theme upload<commit_after>
<div class="modal-content" data-test-modal="limits/custom-theme">
    <header class="modal-header">
        <h1>Upgrade to enable custom themes</h1>
    </header>
    <button class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>

    <div class="modal-body">
        <p>
            {{#if @data.message}}
                {{html-safe @data.message}}
            {{else}}
                Your current plan only supports official themes. You can install them from the <a href="https://ghost.org/marketplace/">Ghost theme marketplace</a>.
            {{/if}}
        </p>
    </div>

    <div class="modal-footer">
        <button {{on "click" @close}} class="gh-btn" data-test-button="cancel-upgrade">
            <span>Cancel</span>
        </button>

        <LinkTo @route="pro" class="gh-btn gh-btn-green" {{on "click" @close}} data-test-button="upgrade-plan">
            <span>Upgrade</span>
        </LinkTo>
    </div>
</div>
{'fraction_non_alphanumeric': 0.17877906976744187, 'fraction_numerical': 0.001937984496124031, 'mean_word_length': 2.505942275042445, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 2, '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': '6984392', 'n_tokens_mistral': 643, 'n_tokens_neox': 620, 'n_words': 145}