Changeset - 0680c58853a4
[Not reviewed]
0 2 0
Bradley M. Kuhn - 4 months ago 2024-01-16 14:07:33
bkuhn@sfconservancy.org
Display donation bar, noting it's results, for 1 week after end

The fundgoal section is now always included, but an if statement now
wraps the entire (partial) file, which will only generate any content
if it's not more than one week after the fundraiser has ended.

Add an else that indicates these are results if it is past the end of
the fundraiser.
2 files changed with 7 insertions and 6 deletions:
0 comments (0 inline, 0 general)
conservancy/fundgoal/templates/fundgoal/fundraiser_goal_banner_partial.html
Show inline comments
...
 
@@ -28,2 +28,3 @@
 
{% with this_match_remaining=this_match_goal|subtract:this_match_so_far sitefundgoal_timeleft=sitefundgoal.fundraiser_endtime|subtract:datetime_now this_match_exceeded=this_match_so_far|subtract:this_match_goal %}
 
 {% if sitefundgoal_timeleft.total_seconds >= -604800 %}
 
    <div class="fundraiser-top-text ph3 pt2 pb3 mb2 mb3-ns">
...
 
@@ -31,2 +32,3 @@
 
      <div class="mt2 mb3 tc">
 
      {% if datetime_now < sitefundgoal.fundraiser_endtime %}
 
        {% if this_match_remaining <= 0 %}
...
 
@@ -35,5 +37,3 @@
 
        {% else %}
 
          {% if sitefundgoal_timeleft.total_seconds <= 0 %}
 
            The
 
          {% elif sitefundgoal_timeleft.days == 0 %}
 
          {% if sitefundgoal_timeleft.days == 0 %}
 
            For the next {% widthratio sitefundgoal_timeleft.total_seconds 3600 1 %} hours <strong>only</strong>, the
...
 
@@ -49,2 +49,5 @@
 
        {% endif %}
 
       {% else %}
 
	  Thank you so much to all our donors who participated in our donation match challenge!  Here are the results:
 
       {% endif %}
 
      </div>
...
 
@@ -75,2 +78,3 @@
 
</div>
 
{% endif %}
 
{% endwith %}
conservancy/templates/base_conservancy.html
Show inline comments
...
 
@@ -82,6 +82,3 @@
 
    </div>
 

	
 
{% if datetime_now < sitefundgoal.fundraiser_endtime %}
 
  {% include "fundgoal/fundraiser_goal_banner_partial.html" %}
 
{% endif %}
 

	
0 comments (0 inline, 0 general)