[guadec-web-regcfp] Show approved state
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp] Show approved state
- Date: Fri, 19 Jun 2015 12:06:45 +0000 (UTC)
commit 41469358bca289e2a1b7ed33206baddf0767c929
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Fri Jun 19 14:06:42 2015 +0200
Show approved state
routes/registration.js | 2 +-
views/registration/payment_paypal_registered.hbs | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/routes/registration.js b/routes/registration.js
index 1ee6a43..e830c0a 100644
--- a/routes/registration.js
+++ b/routes/registration.js
@@ -89,7 +89,7 @@ router.get('/pay/paypal/return', function(req, res, next) {
console.log('Error attaching payment to reg: ' + err);
res.status(500).send('Error attaching payment');
} else {
- res.render('registration/payment_paypal_registered', {amount: info.amount});
+ res.render('registration/payment_paypal_registered', {amount: info.amount, approved:
info.paid});
}
});
});
diff --git a/views/registration/payment_paypal_registered.hbs
b/views/registration/payment_paypal_registered.hbs
index 0840ba7..5a63c53 100644
--- a/views/registration/payment_paypal_registered.hbs
+++ b/views/registration/payment_paypal_registered.hbs
@@ -1,5 +1,9 @@
Thank you!<br/>
+{{#if approved}}
+Your PayPal payment has come in and has been approved.
+{{else}}
Your PayPal payment has come in, and will be processed.
-It can take up to 5 minutes for your payment to be verified.<br/>
+It can take some time for your payment to be verified.<br/>
+{{/if}}
See you in Sweden!<br />
<a href="/">Return</a>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]