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 %} | ||||
| 
 | ||||
| {% 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 %} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith