diff --git a/www/maposmatic/views.py b/www/maposmatic/views.py index 09fc56a7..3fe9be10 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 00000000..9e122333 --- /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 . +{% endcomment %} + +{% load i18n %} + +{% block menu-donate %} +class="activelink" +{% endblock %} + +{% block page %} +

{% trans "Thanks for your donation!" %}

+ +

{%blocktrans%}We have received your donation, thanks for your +support to the MapOSMatic project!{%endblocktrans%}

+ +

{%blocktrans%}You will receive a notification e-mail concerning +your donation. This e-mail will indicate that the donation has been +received by Thomas Petazzoni, 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%}

+ +{% endblock %} diff --git a/www/urls.py b/www/urls.py index b6e63fa4..d9b82a27 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\d+)/(?P[A-Za-z]{16})$', maposmatic.views.job, name='job-by-id-and-nonce'),