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.
This commit is contained in:
parent
5fc238b0ab
commit
187594829d
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,7 @@ this_match_remaining: this_match_goal - this_match_so_far
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% comment %}
|
{% 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_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 %}
|
{% with this_match_remaining=this_match_goal|subtract:this_match_so_far %}
|
||||||
<div class="fundraiser-top-text">
|
<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>
|
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 %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% if sitefundgoal.fundraiser_so_far_amount %}
|
||||||
<div id="siteprogressbar">
|
<div id="siteprogressbar">
|
||||||
<a href="/supporter">
|
<a href="/supporter">
|
||||||
We've matched
|
We've matched
|
||||||
|
@ -88,6 +90,8 @@ this_match_remaining: this_match_goal - this_match_so_far
|
||||||
so far!
|
so far!
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Reference in a new issue