Skip to content

Commit

Permalink
use text link with Box and Onedrive
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongBearCeo committed Apr 30, 2015
1 parent 20f451c commit 0c4692b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
5 changes: 5 additions & 0 deletions client/entry.less
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
}
}
}

a {
display: block;
margin: auto;
}
}

.email-option {
Expand Down
9 changes: 6 additions & 3 deletions client/helpers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ UI.registerHelper 'otherLoginServices', ->
Accounts.oauth.serviceNames().length > 0

UI.registerHelper 'loginServices', ->
Accounts.oauth.serviceNames()
["google", "dropbox", "box", "onedrive"]

UI.registerHelper 'showSignupCode', ->
AccountsEntry.settings.showSignupCode is true
Expand All @@ -50,9 +50,12 @@ UI.registerHelper 'containerCSSClass', ->
"container-fluid"
else
"container"

UI.registerHelper 'rowCSSClass', ->
if AccountsEntry.settings.fluidLayout is true
"row-fluid"
else
"row"
"row"

UI.registerHelper 'isPrimaryService', (serviceName)->
serviceName is 'google' or serviceName is 'dropbox'
24 changes: 17 additions & 7 deletions client/views/social/social.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
<template name='entrySocial'>
<button class="btn" id="entry-{{this}}" name="{{this}}">
{{#if unconfigured}}
<i class="fa fa-{{icon}}"></i> {{t9n "configure"}} {{capitalize this}}
{{else}}
<i class="fa fa-{{icon}}"></i> {{buttonText}} {{t9n "with"}} {{capitalize this}}
{{/if}}
</button>
{{#if isPrimaryService this}}
<button class="btn" id="entry-{{this}}" name="{{this}}">
{{#if unconfigured}}
<i class="fa fa-{{icon}}"></i> {{t9n "configure"}} {{capitalize this}}
{{else}}
<i class="fa fa-{{icon}}"></i> {{buttonText}} {{t9n "with"}} {{capitalize this}}
{{/if}}
</button>
{{else}}
<a class="btn" id="entry-{{this}}" name="{{this}}">
{{#if unconfigured}}
<i class="fa fa-{{icon}}"></i> {{t9n "configure"}} {{capitalize this}}
{{else}}
<i class="fa fa-{{icon}}"></i> {{buttonText}} {{t9n "with"}} {{capitalize this}}
{{/if}}
</a>
{{/if}}
</template>

0 comments on commit 0c4692b

Please sign in to comment.