<commit_before>{% load i18n %}
{% load tags %}

<table class="table subscription-plans">
    <thead>
        <tr>
            <th>{% trans "Plan" context "Subscription plan name" %}</th>
            <th>{% trans "Price" %}</th>
            <th>{% trans "Trial period" %}</th>
            <th>{% trans "Size" %}</th>
            <th>{% trans "Action" %}</th>
        </th>
    </thead>
    <tbody>
        {% for object in object_list %}
        {% if object.category == subscription_category or subscription_category == 'any' %}
        <tr>
            <td>{{object.name}}</td>
            <td>
                {% if object.price > 0 %}
                    $ {{object.price}} USD /

                    {% if object.recurrence_unit == 'D' %}
                        {% trans "day" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'W' %}
                        {% trans "week" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'M' %}
                        {% trans "month" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'Y' %}
                        {% trans "year" %}
                    {% endif %}
                {% else %}
                    {% trans "Free" context "At no cost" %}
                {% endif %}
            </td>
            <td>
                {% if object.trial_period > 0 %}
                    {{object.trial_period}}

                    {% if object.trial_unit == 'D' %}
                        {% trans "days" %}
                    {% endif %}

                    {% if object.trial_unit == 'W' %}
                        {% trans "weeks" %}
                    {% endif %}

                    {% if object.trial_unit == 'M' %}
                        {% trans "months" %}
                    {% endif %}

                    {% if object.trial_unit == 'Y' %}
                        {% trans "years" %}
                    {% endif %}
                {% else %}
                    {% trans "No trial" %}
                {% endif %}
            </td>
            <td>
                {% if object.name == "AstroBin Lite" %}
                    {% blocktrans with max_allowed=PREMIUM_MAX_IMAGES_LITE %}{{max_allowed}} images per year {% endblocktrans %}
                {% endif %}

                {% if object.name == "AstroBin Premium" %}
                    {% blocktrans %}Unlimited images{% endblocktrans %}
                {% endif %}

                {% if object.category == "rawdata" %}
                    {{object.description}}
                {% endif %}
            </td>
            <td>
                <a  class="btn btn-block{% if request.user|has_active_subscription:object.pk %} btn-danger{% endif %}"
                    href="{% url subscription_detail object.pk %}">
                    {% if request.user|has_active_subscription:object.pk %}
                        {% trans "Unsubscribe" %}
                    {% else %}
                        {% if request.user|has_active_subscription_in_category:object.category %}
                            {% trans "Switch to" %}
                        {% else %}
                            {% trans "Subscribe" %}
                        {% endif %}
                    {% endif %}
                </a>
            </td>
        </tr>
        {% endif %}
        {% endfor %}
    </tbody>
</table>
<commit_msg>Add n/a size to donor subscriptions<commit_after>{% load i18n %}
{% load tags %}

<table class="table subscription-plans">
    <thead>
        <tr>
            <th>{% trans "Plan" context "Subscription plan name" %}</th>
            <th>{% trans "Price" %}</th>
            <th>{% trans "Trial period" %}</th>
            <th>{% trans "Size" %}</th>
            <th>{% trans "Action" %}</th>
        </th>
    </thead>
    <tbody>
        {% for object in object_list %}
        {% if object.category == subscription_category or subscription_category == 'any' %}
        <tr>
            <td>{{object.name}}</td>
            <td>
                {% if object.price > 0 %}
                    $ {{object.price}} USD /

                    {% if object.recurrence_unit == 'D' %}
                        {% trans "day" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'W' %}
                        {% trans "week" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'M' %}
                        {% trans "month" %}
                    {% endif %}

                    {% if object.recurrence_unit == 'Y' %}
                        {% trans "year" %}
                    {% endif %}
                {% else %}
                    {% trans "Free" context "At no cost" %}
                {% endif %}
            </td>
            <td>
                {% if object.trial_period > 0 %}
                    {{object.trial_period}}

                    {% if object.trial_unit == 'D' %}
                        {% trans "days" %}
                    {% endif %}

                    {% if object.trial_unit == 'W' %}
                        {% trans "weeks" %}
                    {% endif %}

                    {% if object.trial_unit == 'M' %}
                        {% trans "months" %}
                    {% endif %}

                    {% if object.trial_unit == 'Y' %}
                        {% trans "years" %}
                    {% endif %}
                {% else %}
                    {% trans "No trial" %}
                {% endif %}
            </td>
            <td>
                {% if object.name == "AstroBin Lite" %}
                    {% blocktrans with max_allowed=PREMIUM_MAX_IMAGES_LITE %}{{max_allowed}} images per year {% endblocktrans %}
                {% endif %}

                {% if object.name == "AstroBin Premium" %}
                    {% blocktrans %}Unlimited images{% endblocktrans %}
                {% endif %}

                {% if object.category == "rawdata" %}
                    {{object.description}}
                {% endif %}

                {% if object.category == "donor" %}
                    {% trans "n/a" %}
                {% endif %}
            </td>
            <td>
                <a  class="btn btn-block{% if request.user|has_active_subscription:object.pk %} btn-danger{% endif %}"
                    href="{% url subscription_detail object.pk %}">
                    {% if request.user|has_active_subscription:object.pk %}
                        {% trans "Unsubscribe" %}
                    {% else %}
                        {% if request.user|has_active_subscription_in_category:object.category %}
                            {% trans "Switch to" %}
                        {% else %}
                            {% trans "Subscribe" %}
                        {% endif %}
                    {% endif %}
                </a>
            </td>
        </tr>
        {% endif %}
        {% endfor %}
    </tbody>
</table>

{'fraction_non_alphanumeric': 0.14595520045655586, 'fraction_numerical': 0.0011413896418889999, 'mean_word_length': 0.983026874115983, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 71, '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': '1462244', 'n_tokens_mistral': 2107, 'n_tokens_neox': 1666, 'n_words': 385}