Now, make a duplicate of sitefundgoal0 text for sitefundgoal1.

This commit is contained in:
Bradley Kuhn 2026-01-14 10:09:21 -08:00
parent 746fa42f6c
commit 06dfa1a619

View file

@ -1,5 +1,54 @@
{% load humanize %}
{% if sitefundgoal1.days_remaining >= -22 %}{# i.e. 7 days over completion #}
<div class="fundraiser-top-text ph3 pt2 pb3 mb2 mb3-ns">
<div class="mw8 center ph2 ph4-ns">
<div class="mt2 mb3 tc">
{% if sitefundgoal1.days_remaining >= 0 %}
{% if sitefundgoal1.match_remaining <= 0 %}
Thanks to so many donors, we earned our full match!
Help us go further to stand up for software freedom &mdash; <a href="/sustainer">sign up now</a>!
{% else %}
{% if sitefundgoal1.days_remaining == 0 %}
For the next {{ sitefundgoal1.hours_remaining }} hour{{ sitefundgoal1.hours_remaining|pluralize }} <strong>only</strong>, the
{% elif sitefundgoal1.days_remaining == 1 %}
Help us reach our goal of <b>$503,878</b> this season to keep SFC going. Through tomorrow only, the
{% elif sitefundgoal1.days_remaining < 14 %}
Help us reach our goal of <b>$503,878</b> this season to keep SFC going. For only {{ sitefundgoal1.days_remaining }} more days, the
{% else %}
Help us reach our goal of <b>$503,878</b> this season to keep SFC going. Until January 15, the
{% endif %}
next <b>${{ sitefundgoal1.match_remaining|floatformat:0|intcomma }}</b> of <a href="/sustainer/">support we receive</a> will be matched!
{% endif %}
{% else %}
Thanks to all our donors who participated in our
historic donation match challenge! Thanks to you, <a href="https://sfconservancy.org/blog/2025/jan/16/end-of-year-2024-fundraiser-a-massive-success/">we
raised more than $480k to support software freedom</a>:
{% endif %}
</div>
<a href="/sustainer/" style="text-decoration: none !important">
<div id="siteprogressbar" class="flex items-stretch w-100">
{% if sitefundgoal1.match_remaining <= 0 %}
<div class="progress matched ph1 pv1 b flex items-center" style="flex-basis: {{ sitefundgoal1.fundraiser_so_far_amount }}px">
<span id="site-fundraiser-match-count" class="soFarText tc w-100 ph1">${{ sitefundgoal1.fundraiser_goal_amount|floatformat:0|intcomma }} fully matched!</span>
</div>
<div class="progress exceeded pv1 b flex items-center" style="flex-basis: {{ sitefundgoal1.match_exceeded_by }}px">
<span id="site-fundraiser-match-count" class="soFarText tc w-100 exceeded ph1">${{sitefundgoal1.match_exceeded_by|floatformat:0|intcomma }} additional<br> raised!<br></span>
</div>
{% else %}
<div class="progress ph1 pv1 b flex items-center" style="flex-basis: {{ sitefundgoal1.fundraiser_so_far_amount }}px">
<span id="site-fundraiser-match-count" class="soFarText tc w-100">${{ sitefundgoal1.fundraiser_so_far_amount|floatformat:0|intcomma }} matched!</span>
</div>
<div class="final-goal pv1 b flex items-center" style="flex-basis: {{ sitefundgoal1.match_remaining }}px">
<span id="site-fundraiser-final-goal" class="goalText tc w-100 ph1">${{ sitefundgoal1.match_remaining|floatformat:0|intcomma }} to go!</span>
</div>
{% endif %}
</div>
</a>
</div>
</div>
{% endif %}
{% if sitefundgoal0.days_remaining >= -22 %}{# i.e. 7 days over completion #}
<div class="fundraiser-top-text ph3 pt2 pb3 mb2 mb3-ns">
<div class="mw8 center ph2 ph4-ns">