summaryrefslogtreecommitdiffstats
path: root/packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js')
-rw-r--r--packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js b/packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js
new file mode 100644
index 00000000..29c809a4
--- /dev/null
+++ b/packages/meteor-useraccounts-core/lib/templates_helpers/at_signup_link.js
@@ -0,0 +1,24 @@
+AT.prototype.atSignupLinkHelpers = {
+ disabled: function() {
+ return AccountsTemplates.disabled();
+ },
+ signUpLink: function(){
+ return AccountsTemplates.getRoutePath("signUp");
+ },
+ preText: function(){
+ return T9n.get(AccountsTemplates.texts.signUpLink_pre, markIfMissing=false);
+ },
+ linkText: function(){
+ return T9n.get(AccountsTemplates.texts.signUpLink_link, markIfMissing=false);
+ },
+ suffText: function(){
+ return T9n.get(AccountsTemplates.texts.signUpLink_suff, markIfMissing=false);
+ },
+};
+
+AT.prototype.atSignupLinkEvents = {
+ "click #at-signUp": function(event, t) {
+ event.preventDefault();
+ AccountsTemplates.linkClick('signUp');
+ },
+};