kopia lustrzana https://github.com/hholzgra/maposmatic/
Add a Thanks for donation page
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>stable
rodzic
891583fd2b
commit
647a11cbc3
|
@ -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."""
|
||||
|
||||
|
|
|
@ -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 %}
|
|
@ -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'),
|
||||
|
|
Ładowanie…
Reference in New Issue