From 51ebbc9cb8e7dd1112d707e46c52cbaa98c56718 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 8 Mar 2015 21:54:34 -0700 Subject: [PATCH] Convert VMware fundraiser to new dynamic content. Use the new dynamic content fundgoal stuff for VMware fundraiser. --- www/conservancy/templates/base_compliance.html | 6 +++--- www/conservancy/urls.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/conservancy/templates/base_compliance.html b/www/conservancy/templates/base_compliance.html index 44798a2b..db96f1ea 100644 --- a/www/conservancy/templates/base_compliance.html +++ b/www/conservancy/templates/base_compliance.html @@ -19,9 +19,9 @@

Support our GPL compliance work now & donation counts double!

-$33,671.99 -of $50,000 match met.
-
+${{ fundgoal.fundraiser_so_far_amount|floatformat:0|intcomma }} +of ${{ fundgoal.fundraiser_goal_amount|floatformat:0|intcomma }} match met.
+
{{ fundgoal.percentage_there|floatformat:1 }}%

Donate now via PayPal:

diff --git a/www/conservancy/urls.py b/www/conservancy/urls.py index f752c691..a94bf2fc 100644 --- a/www/conservancy/urls.py +++ b/www/conservancy/urls.py @@ -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'),