maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 1/3] Add a Thanks for donation page


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH 1/3] Add a Thanks for donation page
Date: Sun, 1 Apr 2012 11:31:07 +0200

Signed-off-by: Thomas Petazzoni <address@hidden>
---
 www/maposmatic/views.py                     |    5 +++
 www/templates/maposmatic/donate-thanks.html |   42 +++++++++++++++++++++++++++
 www/urls.py                                 |    2 +
 3 files changed, 49 insertions(+), 0 deletions(-)
 create mode 100644 www/templates/maposmatic/donate-thanks.html

diff --git a/www/maposmatic/views.py b/www/maposmatic/views.py
index 09fc56a..3fe9be1 100644
--- a/www/maposmatic/views.py
+++ b/www/maposmatic/views.py
@@ -65,6 +65,11 @@ def donate(request):
     return render_to_response('maposmatic/donate.html',
                               context_instance=RequestContext(request))
 
+def donate_thanks(request):
+    """The thanks for donation page."""
+    return render_to_response('maposmatic/donate-thanks.html',
+                              context_instance=RequestContext(request))
+
 def new(request):
     """The map creation page and form."""
 
diff --git a/www/templates/maposmatic/donate-thanks.html 
b/www/templates/maposmatic/donate-thanks.html
new file mode 100644
index 0000000..9e12233
--- /dev/null
+++ b/www/templates/maposmatic/donate-thanks.html
@@ -0,0 +1,42 @@
+{% extends "maposmatic/base.html" %}
+
+{% comment %}
+ coding: utf-8
+
+ maposmatic, the web front-end of the MapOSMatic city map generation system
+ Copyright (C) 2012  Thomas Petazzoni
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+{% endcomment %}
+
+{% load i18n %}
+
+{% block menu-donate %}
+class="activelink"
+{% endblock %}
+
+{% block page %}
+<h1>{% trans "Thanks for your donation!" %}</h1>
+
+<p>{%blocktrans%}We have received your donation, thanks for your
+support to the MapOSMatic project!{%endblocktrans%}</p>
+
+<p>{%blocktrans%}You will receive a notification e-mail concerning
+your donation. This e-mail will indicate that the donation has been
+received by <i>Thomas Petazzoni</i>, who is the MapOSMatic developer
+in charge of donations and funds. MapOSMatic is still an informal
+gathering of developers, and we have not (yet) created a non-profit
+organization to support the project.{%endblocktrans%}</p>
+
+{% endblock %}
diff --git a/www/urls.py b/www/urls.py
index b6e63fa..d9b82a2 100644
--- a/www/urls.py
+++ b/www/urls.py
@@ -43,6 +43,8 @@ urlpatterns = patterns('',
         name='about'),
     url(r'^donate/$', maposmatic.views.donate,
         name='donate'),
+    url(r'^donate-thanks/$', maposmatic.views.donate_thanks,
+        name='donate'),
     url(r'^jobs/(?P<job_id>\d+)/(?P<job_nonce>[A-Za-z]{16})$',
         maposmatic.views.job,
         name='job-by-id-and-nonce'),
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]