From fbed27d866e6c01cdd7fc38cf90e19e745ef1d5a Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Sun, 27 Oct 2024 23:58:44 +0000 Subject: [PATCH] fix: Addressing review comments --- .../includes/display_django_heroes.html | 18 ++++++++++++------ .../fundraising/manage-donations.html | 4 ++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/djangoproject/templates/fundraising/includes/display_django_heroes.html b/djangoproject/templates/fundraising/includes/display_django_heroes.html index 647cf5afb..c321b521e 100644 --- a/djangoproject/templates/fundraising/includes/display_django_heroes.html +++ b/djangoproject/templates/fundraising/includes/display_django_heroes.html @@ -1,7 +1,8 @@ {% load humanize i18n %}
{% if corporate_members.diamond %} -

{% translate "Diamond Corporate Members" %} (${{ corporate_membership_amounts.diamond|intcomma }}+)

+

{% blocktranslate trimmed with amount=corporate_membership_amounts.diamond|intcomma %} + Diamond Corporate Members (${{ amount }}+){% endblocktranslate %}

{% for obj in corporate_members.diamond %} {% include "fundraising/includes/_hero_with_logo.html" %} @@ -10,7 +11,8 @@

{% translate "Diamond Corporate Members" %} (${{ corporate_membership_amount {% endif %} {% if corporate_members.platinum %} -

{% translate "Platinum Corporate Members" %} (${{ corporate_membership_amounts.platinum|intcomma }}+)

+

{% blocktranslate trimmed with amount=corporate_membership_amounts.platinum|intcomma %} + Platinum Corporate Members (${{ amount }}+){% endblocktranslate %}

{% for obj in corporate_members.platinum %} {% include "fundraising/includes/_hero_with_logo.html" %} @@ -19,7 +21,8 @@

{% translate "Platinum Corporate Members" %} (${{ corporate_membership_amoun {% endif %} {% if corporate_members.gold %} -

{% translate "Gold Corporate Members" %} (${{ corporate_membership_amounts.gold|intcomma }}+)

+

{% blocktranslate trimmed with amount=corporate_membership_amounts.gold|intcomma %} + Gold Corporate Members (${{ amount }}+){% endblocktranslate %}

{% for obj in corporate_members.gold %} {% include "fundraising/includes/_hero_with_logo.html" %} @@ -28,7 +31,8 @@

{% translate "Gold Corporate Members" %} (${{ corporate_membership_amounts.g {% endif %} {% if corporate_members.silver %} -

{% translate "Silver Corporate Members" %} (${{ corporate_membership_amounts.silver|intcomma }}+)

+

{% blocktranslate trimmed with amount=corporate_membership_amounts.silver|intcomma %} + Silver Corporate Members (${{ amount }}+){% endblocktranslate %}

{% for obj in corporate_members.silver %} {% include "fundraising/includes/_hero_with_logo.html" %} @@ -37,7 +41,8 @@

{% translate "Silver Corporate Members" %} (${{ corporate_membership_amounts {% endif %} {% if corporate_members.bronze %} -

{% translate "Bronze Corporate Members" %} (${{ corporate_membership_amounts.bronze|intcomma }}+)

+

{% blocktranslate trimmed with amount=corporate_membership_amounts.bronze|intcomma %} + Bronze Corporate Members (${{ amount }}+){% endblocktranslate %}

{% for obj in corporate_members.bronze %} {% include "fundraising/includes/_hero_with_logo.html" %} @@ -55,7 +60,8 @@

{% translate "In-kind donors" {% endwith %}

-

{% translate "Leaders" %} (${{ display_logo_amount|intcomma }}+)

+

{% blocktranslate trimmed with amount=display_logo_amount|intcomma %} + Leaders (${{ amount }}+){% endblocktranslate %}

{% blocktranslate trimmed with amount=display_logo_amount|intcomma %} Leadership-level donors contribute ${{ amount }} or diff --git a/djangoproject/templates/fundraising/manage-donations.html b/djangoproject/templates/fundraising/manage-donations.html index 3b4eda7c2..340bc6550 100644 --- a/djangoproject/templates/fundraising/manage-donations.html +++ b/djangoproject/templates/fundraising/manage-donations.html @@ -31,7 +31,7 @@

{% translate "Manage your participation in the fundraising campaigns" %}

- +

{# Always include to avoid "Management form has been tampered with" if no recurring donations exist #} {{ modify_donations_formset.management_form }} @@ -48,7 +48,7 @@

{% translate "Modify your recurring donations" %}

{% endfor %}

- +