# HG changeset patch # User Dennis Fink # Date 2015-10-11 18:43:36 # Node ID da5aec72d77adc7e67eae3f4551533542e5412f8 # Parent c049bbdd7c2cba48eb83c886276ba79046b742f2 Remove uneeded donate pages diff --git a/ennstatus/donate/views.py b/ennstatus/donate/views.py --- a/ennstatus/donate/views.py +++ b/ennstatus/donate/views.py @@ -10,18 +10,8 @@ from ennstatus.root.constants import BPM donate_page = Blueprint('donate', __name__) -@donate_page.route('/') +@donate_page.route('/', methods=('GET', 'POST')) def index(): - return render_template('donate/index.html') - - -@donate_page.route('/wiretransfer') -def wiretransfer(): - return render_template('donate/wiretransfer.html') - - -@donate_page.route('/snailmail', methods=('GET', 'POST')) -def snailmail(): current_app.logger.info('Handling snailmail') form = BPMForm() @@ -47,27 +37,7 @@ def snailmail(): form.country.data = country address = BPM_ADDRESSES[country] - return render_template('donate/snailmail.html', form=form, address=address) - - -@donate_page.route('/paypal') -def paypal(): - return render_template('donate/paypal.html') - - -@donate_page.route('/bitcoin') -def bitcoin(): - return render_template('donate/bitcoin.html') - - -@donate_page.route('/flattr') -def flattr(): - return render_template('donate/flattr.html') - - -@donate_page.route('/bpm') -def bpm(): - return render_template('donate/bpm.html') + return render_template('donate/index.html', form=form, address=address) @donate_page.route('/received', diff --git a/ennstatus/templates/donate/bitcoin.html b/ennstatus/templates/donate/bitcoin.html deleted file mode 100644 --- a/ennstatus/templates/donate/bitcoin.html +++ /dev/null @@ -1,140 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - Bitcoin" %} - -{% block styles %} - {{ super() }} - -{% endblock %} - - -{% block content %} -
- Bitcoin -

Bitcoin

-
-
-
-

"This may be the purest form of democracy the world has ever known, and I — for one — am thrilled to be here to watch it unfold."

- Paco Ahlgren -
- -

Bitcoin is a cryptocurrency where the creation and transfer of bitcoins is based on an open-source cryptographic protocol that is independent of any central authority.Bitcoins can be transferred through a computer or smartphone without an intermediate financial institution. The concept was introduced in a 2008 paper by a pseudonymous developer known only as "Satoshi Nakamoto", who called it a peer-to-peer, electronic cash system.

- -

Bitcoin Address
- 1EYZCq2ZL6chWXYYkJoDo7fz39UC7do5cC

- -
- -
- -
- -
-
-
- -
- - -
-
- -
- -
-
-
-{% endblock %} - -{% block scripts %} - - {{ super() }} - - - -{% endblock %} diff --git a/ennstatus/templates/donate/bpm.html b/ennstatus/templates/donate/bpm.html deleted file mode 100644 --- a/ennstatus/templates/donate/bpm.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - BPM" %} - -{% block content %} -
- BPM -

BPM Points

-
-
-
-

"Privacy is not something that I'm merely entitled to, it's an absolute prerequisite."

- Marlon Brandobrainyquote -
- -

We accept BPM points as they will be used for our BPM Parcel Station. The parcel station is used for receiving and sending mails and packages around the world!

-

- Mail us your BPM voucher code! -

- -
-{% endblock %} diff --git a/ennstatus/templates/donate/flattr.html b/ennstatus/templates/donate/flattr.html deleted file mode 100644 --- a/ennstatus/templates/donate/flattr.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - Flattr" %} - -{% block content %} -
- Flattr -

Flattr

-
-
-
-

"This may be the purest form of democracy the world has ever known, and I — for one — am thrilled to be here to watch it unfold."

- Paco Ahlgren -
- -

We do accept flattr. Help us to raise some more funds to support our infrastructure.

-

- - Flattr this - -

-
-{% endblock %} diff --git a/ennstatus/templates/donate/paypal.html b/ennstatus/templates/donate/paypal.html deleted file mode 100644 --- a/ennstatus/templates/donate/paypal.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - PayPal" %} - -{% block content %} -
- PayPal -

PayPal

-
-
-
-

"This may be the purest form of democracy the world has ever known, and I — for one — am thrilled to be here to watch it unfold."

- Paco Ahlgren -
- -

PayPal is quite fast and a nice alternative to the good old wire transfer. Still, we prefer the good old wire transfer, as they don't put up our expenses and so we can invest more in our infrstrcture.

-

Still, we are glad with every support we get, so don't hesitate to use this method as well.

- -
- - - - -
-
-{% endblock %} diff --git a/ennstatus/templates/donate/snailmail.html b/ennstatus/templates/donate/snailmail.html deleted file mode 100644 --- a/ennstatus/templates/donate/snailmail.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - Snailmail" %} - -{% block content %} -
- SnailMail -

Snailmail

-
-
-
-

"This may be the purest form of democracy the world has ever known, and I — for one — am thrilled to be here to watch it unfold."

- Paco Ahlgren -
- -
-
- {{ form.hidden_tag() }} -
- {{ form.country.label }} - {{ form.country(_class="form-control") }} -
- -
-
-
-
-

SnailMail is most probably, the most anonymous way to support us - as long as you debit / change the money anonymously and touch it without your fingerprints.

- - -
- Frënn vun der Ënn, ASBL
- BPM 381892
- {{ address['address'] }}
- {{ address['postal_code'] }}, {{ address['city'] }}
- {{ address['country'] }}
-
-
-{% endblock %} diff --git a/ennstatus/templates/donate/wiretransfer.html b/ennstatus/templates/donate/wiretransfer.html deleted file mode 100644 --- a/ennstatus/templates/donate/wiretransfer.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base.html" %} - -{% set title = "Donate - Wiretransfer" %} - -{% block content %} -
- WireTransfer -

Wiretransfer

-
-
-
-

"This may be the purest form of democracy the world has ever known, and I — for one — am thrilled to be here to watch it unfold."

- Paco Ahlgren -
- -

Wire Transfer is probably the most traditional way to support us, but one of the simplest. Please, find our bank information below.

-

Either donate directly to us or proxy your money through one of our partners.

-

- Account holder: Frënn vun der Ënn A.S.B.L.
- BIC/SWIFT: BCEELULL
- IBAN: LU65 0019 4055 6782 7000
-

- -

Partner Organizations

-

- Account holder: Chaos Computer Club Lëtzebuerg A.S.B.L.
- BIC/SWIFT: BCEELULL
- IBAN: LU29 0019 2855 3890 4000
- Subject: * to FVDE
-

-
-{% endblock %}