[guadec-web-regcfp/develop] fixes



commit f0c9920d61a005d770c9a9072e46f6aa512aa983
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date:   Mon Jun 22 23:38:47 2015 +0200

    fixes

 routes/registration.js         |    4 ++--
 views/registration/receipt.hbs |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/routes/registration.js b/routes/registration.js
index c1e3dc8..eb5ec9f 100644
--- a/routes/registration.js
+++ b/routes/registration.js
@@ -204,9 +204,9 @@ router.post('/pay/do', function(req, res, next) {
 router.all('/receipt', utils.require_user);
 router.all('/receipt', utils.require_permission('registration/request_receipt'));
 router.get('/receipt', function(req, res, next) {
-  req.user.getRegistration()
+  req.user.getRegistration({include: [RegistrationPayment]})
   .complete(function(err, reg) {
-    res.render('registration/receipt', { registration: reg });
+    res.render('registration/receipt', { registration: reg , layout:false });
   });
 });
 
diff --git a/views/registration/receipt.hbs b/views/registration/receipt.hbs
index 21b9b53..e6cfc16 100644
--- a/views/registration/receipt.hbs
+++ b/views/registration/receipt.hbs
@@ -35,7 +35,7 @@ body {
 <div class="header">&nbsp;</div>
 <div class="content">
 <h1>Receipt</h1>
-<h3>Thank you, {{registration.User.name}} for registering to GUADEC 2015!</h3>
+<h3>Thank you, {{user.name}}, for registering to GUADEC 2015!</h3>
  
 <p>We received your payment of {{config.registration.currency_symbol}}{{registration.paid}} to the GNOME 
Foundation, as a registration fee for GUADEC 2015.</p>
  


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