From 8b9555ed33827fa16d15191377de5e8256be749e Mon Sep 17 00:00:00 2001 From: Josh Owens Date: Thu, 13 Feb 2014 13:42:55 -0500 Subject: [PATCH] Add before hooks to all the account navigation links. --- client/views/accountButtons/accountButtons.coffee | 12 ++++++++++++ client/views/accountButtons/accountButtons.html | 10 +++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/client/views/accountButtons/accountButtons.coffee b/client/views/accountButtons/accountButtons.coffee index fbe64323..0deea508 100644 --- a/client/views/accountButtons/accountButtons.coffee +++ b/client/views/accountButtons/accountButtons.coffee @@ -5,3 +5,15 @@ Template.entryAccountButtons.helpers wrapLinks: -> AccountsEntry.settings.wrapLinks + + beforeSignIn: -> + AccountsEntry.settings.beforeSignIn + + beforeSignUp: -> + AccountsEntry.settings.beforeSignUp + + beforeSignOut: -> + AccountsEntry.settings.beforeSignOut + + beforeSignedInAs: -> + AccountsEntry.settings.beforeSignedInAs diff --git a/client/views/accountButtons/accountButtons.html b/client/views/accountButtons/accountButtons.html index 210d4f61..66e7e00d 100644 --- a/client/views/accountButtons/accountButtons.html +++ b/client/views/accountButtons/accountButtons.html @@ -3,28 +3,28 @@ {{#if profileUrl}} {{#if wrapLinks}}
  • {{/if}} - {{signedInAs}} + {{{beforeSignedInAs}}}{{signedInAs}} {{#if wrapLinks}}
  • {{/if}} {{else}} {{#if wrapLinks}}
  • {{/if}} - + {{#if wrapLinks}}
  • {{/if}} {{/if}} {{#if wrapLinks}}
  • {{/if}} - {{i18n "signOut"}} + {{{beforeSignOut}}}{{i18n "signOut"}} {{#if wrapLinks}}
  • {{/if}} {{else}} {{#if wrapLinks}}
  • {{/if}} - {{i18n "signIn"}} + {{{beforeSignIn}}}{{i18n "signIn"}} {{#if wrapLinks}}
  • {{/if}} {{#unless wrapLinks}}or{{/unless}} {{#if wrapLinks}}
  • {{/if}} - {{i18n "signUp"}} + {{{beforeSignUp}}}{{i18n "signUp"}} {{#if wrapLinks}}
  • {{/if}} {{/if}}