Skip to content

Commit

Permalink
updated buttonText helper
Browse files Browse the repository at this point in the history
  • Loading branch information
musgravejw committed Jun 13, 2014
1 parent def4f1b commit 31a5917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion client/views/social/social.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
Template.entrySocial.helpers

buttonText: ->
Session.get('buttonText')
buttonText = Session.get('buttonText')
if buttonText == 'up'
t9n 'signUp'
else
t9n 'signIn'

unconfigured: ->
ServiceConfiguration.configurations.find({service: @toString()}).fetch().length is 0
Expand Down
2 changes: 1 addition & 1 deletion client/views/social/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{#if unconfigured}}
<i class="fa fa-{{icon}}"></i> {{t9n "configure"}} {{capitalize this}}
{{else}}
<i class="fa fa-{{icon}}"></i> {{t9n "signUp"}} {{t9n "with"}} {{capitalize this}}
<i class="fa fa-{{icon}}"></i> {{buttonText}} {{t9n "with"}} {{capitalize this}}
{{/if}}
</button>
</template>

0 comments on commit 31a5917

Please sign in to comment.