From a17c08f00ce15fc31cc827bd2d92d4e6e8c9f77d Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 14 Jan 2026 10:04:42 -0800 Subject: [PATCH] Step 2, switch to using 'sitefundgoal0' --- conservancy/context_processors.py | 6 ++-- .../fundraiser_goal_banner_partial.html | 36 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/conservancy/context_processors.py b/conservancy/context_processors.py index ec0ad07d..3c6ed3d2 100644 --- a/conservancy/context_processors.py +++ b/conservancy/context_processors.py @@ -4,10 +4,10 @@ from .fundgoal.models import FundraisingGoal def sitefundraiser(request): try: - fundgoal = FundraisingGoal.objects.get(fundraiser_code_name=settings.SITE_FUNDGOAL_0) + fundgoal0 = FundraisingGoal.objects.get(fundraiser_code_name=settings.SITE_FUNDGOAL_0) except FundraisingGoal.DoesNotExist: - fundgoal = None - return {'sitefundgoal': fundgoal} + fundgoal0 = None + return {'sitefundgoal0': fundgoal0 } def host_url(request): diff --git a/conservancy/fundgoal/templates/fundgoal/fundraiser_goal_banner_partial.html b/conservancy/fundgoal/templates/fundgoal/fundraiser_goal_banner_partial.html index d99a76bc..cd882188 100644 --- a/conservancy/fundgoal/templates/fundgoal/fundraiser_goal_banner_partial.html +++ b/conservancy/fundgoal/templates/fundgoal/fundraiser_goal_banner_partial.html @@ -1,24 +1,24 @@ {% load humanize %} -{% if sitefundgoal.days_remaining >= -22 %}{# i.e. 7 days over completion #} +{% if sitefundgoal0.days_remaining >= -22 %}{# i.e. 7 days over completion #}
- {% if sitefundgoal.days_remaining >= 0 %} - {% if sitefundgoal.match_remaining <= 0 %} + {% if sitefundgoal0.days_remaining >= 0 %} + {% if sitefundgoal0.match_remaining <= 0 %} Thanks to so many donors, we earned our full match! Help us go further to stand up for software freedom — sign up now! {% else %} - {% if sitefundgoal.days_remaining == 0 %} - For the next {{ sitefundgoal.hours_remaining }} hour{{ sitefundgoal.hours_remaining|pluralize }} only, the - {% elif sitefundgoal.days_remaining == 1 %} + {% if sitefundgoal0.days_remaining == 0 %} + For the next {{ sitefundgoal0.hours_remaining }} hour{{ sitefundgoal0.hours_remaining|pluralize }} only, the + {% elif sitefundgoal0.days_remaining == 1 %} Help us reach our goal of $503,878 this season to keep SFC going. Through tomorrow only, the - {% elif sitefundgoal.days_remaining < 14 %} - Help us reach our goal of $503,878 this season to keep SFC going. For only {{ sitefundgoal.days_remaining }} more days, the + {% elif sitefundgoal0.days_remaining < 14 %} + Help us reach our goal of $503,878 this season to keep SFC going. For only {{ sitefundgoal0.days_remaining }} more days, the {% else %} Help us reach our goal of $503,878 this season to keep SFC going. Until January 15, the {% endif %} - next ${{ sitefundgoal.match_remaining|floatformat:0|intcomma }} of support we receive will be matched! + next ${{ sitefundgoal0.match_remaining|floatformat:0|intcomma }} of support we receive will be matched! {% endif %} {% else %} Thanks to all our donors who participated in our @@ -29,19 +29,19 @@
- {% if sitefundgoal.match_remaining <= 0 %} -
- ${{ sitefundgoal.fundraiser_goal_amount|floatformat:0|intcomma }} fully matched! + {% if sitefundgoal0.match_remaining <= 0 %} +
+ ${{ sitefundgoal0.fundraiser_goal_amount|floatformat:0|intcomma }} fully matched!
-
- ${{sitefundgoal.match_exceeded_by|floatformat:0|intcomma }} additional
raised!
+
+ ${{sitefundgoal0.match_exceeded_by|floatformat:0|intcomma }} additional
raised!
{% else %} -
- ${{ sitefundgoal.fundraiser_so_far_amount|floatformat:0|intcomma }} matched! +
+ ${{ sitefundgoal0.fundraiser_so_far_amount|floatformat:0|intcomma }} matched!
-
- ${{ sitefundgoal.match_remaining|floatformat:0|intcomma }} to go! +
+ ${{ sitefundgoal0.match_remaining|floatformat:0|intcomma }} to go!
{% endif %}