# HG changeset patch
# User Brian Neal
# Date 1246141235 0
# Node ID 9a29e99339590766fa0ece7e4327314df2098fbd
# Parent 9fabeabd89d4c78ca2dad95a0f32c569371f378e
Donations: made the donations debug flag be in local_settings. Changed the donations template to be a two column display of stats and donors.
diff -r 9fabeabd89d4 -r 9a29e9933959 gpp/settings.py
--- a/gpp/settings.py Sat Jun 27 21:56:56 2009 +0000
+++ b/gpp/settings.py Sat Jun 27 22:20:35 2009 +0000
@@ -160,7 +160,7 @@
AVATAR_DEFAULT_URL = MEDIA_URL + AVATAR_DIR + '/default.png'
# Donations application settings:
-DONATIONS_DEBUG = True
+DONATIONS_DEBUG = local_settings.DONATIONS_DEBUG
DONATIONS_ITEM_NAME = 'Donation for SurfGuitar101.com'
DONATIONS_BUSINESS = 'brian@surfguitar101.com'
DONATIONS_BUSINESS_DEBUG = local_settings.DONATIONS_BUSINESS_DEBUG
diff -r 9fabeabd89d4 -r 9a29e9933959 gpp/templates/donations/index.html
--- a/gpp/templates/donations/index.html Sat Jun 27 21:56:56 2009 +0000
+++ b/gpp/templates/donations/index.html Sat Jun 27 22:20:35 2009 +0000
@@ -14,6 +14,7 @@
contact me and we can work something else out.
Thank you for donating to SurfGuitar101.com!
+
Statistics for {% now "F, Y" %}:
Goal: | ${{ goal }} |
@@ -21,8 +22,10 @@
Net: | ${{ net }} |
Left to Go: | ${{ left }} |
+
+
+
Donors for {% now "F, Y" %}:
{% if donations %}
-
Donors for {% now "F, Y" %}:
{% for donation in donations %}
-
@@ -38,15 +41,18 @@
{% endfor %}
+{% else %}
+
We haven't received any donations this month. You could be the first!
{% endif %}
+
-Donation Form
+
{% endblock %}