Changeset - 187594829ddf
[Not reviewed]
0 1 0
Brett Smith (brett) - 3 years ago 2018-11-19 19:53:12
brett@sfconservancy.org
templates: Finer-grained split of fundraiser header display.

Always show the header if a fundraising goal is active.
Only show the progressbar if there's money in it.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/base_conservancy.html
Show inline comments
...
 
@@ -63,7 +63,7 @@ this_match_remaining: this_match_goal - this_match_so_far
 
{% endcomment %}
 

	
 
{% comment %}
 
{% if sitefundgoal and sitefundgoal.fundraiser_so_far_amount %}
 
{% if sitefundgoal %}
 
{% with this_match_goal=sitefundgoal.fundraiser_goal_amount this_match_so_far=sitefundgoal.fundraiser_so_far_amount %}
 
{% with this_match_remaining=this_match_goal|subtract:this_match_so_far %}
 
    <div class="fundraiser-top-text">
...
 
@@ -75,6 +75,8 @@ this_match_remaining: this_match_goal - this_match_so_far
 
        The next ${{ this_match_remaining|floatformat:0|intcomma }} of support we receive will be matched thanks to Private Internet Access and a group of generous donors, including {{ sitefundgoal.random_providers }}!  <a href="/supporter/">Support Conservancy today!</a>
 
        {% endif %}
 
      </p>
 

	
 
{% if sitefundgoal.fundraiser_so_far_amount %}
 
<div id="siteprogressbar">
 
<a href="/supporter">
 
  We've matched
...
 
@@ -88,6 +90,8 @@ this_match_remaining: this_match_goal - this_match_so_far
 
  so far!
 
</a>
 
</div>
 
{% endif %}
 

	
 
</div>
 
{% endwith %}
 
{% endwith %}
0 comments (0 inline, 0 general)