From 187594829ddf25b4303ec722c5b1cba9e90269e3 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Mon, 19 Nov 2018 14:53:12 -0500 Subject: [PATCH] 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. --- www/conservancy/templates/base_conservancy.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/conservancy/templates/base_conservancy.html b/www/conservancy/templates/base_conservancy.html index 6c7fc3f6..080f4580 100644 --- a/www/conservancy/templates/base_conservancy.html +++ b/www/conservancy/templates/base_conservancy.html @@ -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 %}
@@ -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 }}! Support Conservancy today! {% endif %}

+ +{% if sitefundgoal.fundraiser_so_far_amount %} +{% endif %} +
{% endwith %} {% endwith %}