[guadec-web-regcfp/develop] ifGT* is no longer needed



commit 26e7a8cecb6d8d8256d47e756e82cbc4f33d6df0
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date:   Tue Aug 4 22:30:28 2015 +0200

    ifGT* is no longer needed

 app.js                |   14 --------------
 views/desk/finish.hbs |    4 ++--
 2 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/app.js b/app.js
index 3f933df..646373e 100644
--- a/app.js
+++ b/app.js
@@ -43,20 +43,6 @@ var hbs = handlebars.create({
       } else {
         return options.inverse(this);
       }
-    },
-    ifGTE: function(v1, v2, options) {
-      if(v1 >= v2) {
-        return options.fn(this);
-      } else {
-        return options.inverse(this);
-      }
-    },
-    ifGT: function(v1, v2, options) {
-      if(v1 > v2) {
-        return options.fn(this);
-      } else {
-        return options.inverse(this);
-      }
     }
   }
 });
diff --git a/views/desk/finish.hbs b/views/desk/finish.hbs
index d188e84..b0350d9 100644
--- a/views/desk/finish.hbs
+++ b/views/desk/finish.hbs
@@ -1,11 +1,11 @@
 You have finished the registration of {{registration.User.name}}!<br />
 
-{{#ifGTE registration.paid config.registration.min_amount_for_receipt}}
+{{#if registration.eligible_for_receipt}}
     Receipt: <a href="/desk/receipt?regid={{registration.id}}" target="_blank">Click here to print 
receipt</a><br />
     <b>Note: The user can also log in to the applicaton and get his receipt at any time.</b><br />
 {{else}}
     The user did not pay enough for a receipt.<br />
-{{/ifGTE}}
+{{/if}}
 <br />
 
 <b>Badge: <a href="/desk/badge?regid={{registration.id}}" target="_blank">Click here to print 
badge</a></b><br />



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