Convert VMware fundraiser to new dynamic content.

Use the new dynamic content fundgoal stuff for VMware fundraiser.
This commit is contained in:
Bradley M. Kuhn 2015-03-08 21:54:34 -07:00
parent 732bf3b4c8
commit 51ebbc9cb8
2 changed files with 4 additions and 4 deletions

View file

@ -19,9 +19,9 @@
<p>Support our GPL compliance work now &amp; <strong>donation counts double!</strong></p>
$<span id="fundraiser-so-far">33,671.99</span>
of $<span id="fundraiser-goal">50,000</span> match met.<br/>
<div id="progressbar"><span id="fundraiser-percentage" style="float:right; align:center; margin-right:40%"></span></div>
$<span id="fundraiser-so-far">{{ fundgoal.fundraiser_so_far_amount|floatformat:0|intcomma }}</span>
of $<span id="fundraiser-goal">{{ fundgoal.fundraiser_goal_amount|floatformat:0|intcomma }}</span> match met.<br/>
<div id="progressbar"><span id="fundraiser-percentage">{{ fundgoal.percentage_there|floatformat:1 }}%</span></div>
<p>Donate now via PayPal:
</p>

View file

@ -61,7 +61,7 @@ urlpatterns = patterns('',
(r'^error', 'conservancy.static.views.index'),
(r'^about', 'conservancy.static.views.index'),
(r'^donate', 'conservancy.static.views.index'),
(r'^linux-compliance', 'conservancy.static.views.index'),
(r'^linux-compliance', 'conservancy.static.views.index', {'fundgoal' : fundgoal_lookup('vmware-match-0')}),
(r'^members', 'conservancy.static.views.index'),
(r'^npoacct', 'conservancy.static.views.index', {'fundgoal' : fundgoal_lookup('npoacct')}),
(r'^overview', 'conservancy.static.views.index'),