From a408f58edb923cd14bf7c7b3411b874dce5f0724 Mon Sep 17 00:00:00 2001 From: Sameer Dhar Date: Wed, 9 Jul 2014 18:04:58 -0400 Subject: [PATCH] feat(app): added oath buttons to signup page --- .../app/account(auth)/signup/signup(html).html | 17 ++++++++++++++++- .../app/account(auth)/signup/signup(jade).jade | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/app/templates/client/app/account(auth)/signup/signup(html).html b/app/templates/client/app/account(auth)/signup/signup(html).html index 9da255d6c..6e344f082 100644 --- a/app/templates/client/app/account(auth)/signup/signup(html).html +++ b/app/templates/client/app/account(auth)/signup/signup(html).html @@ -62,7 +62,22 @@

Sign up

Login + + <% if(filters.facebookAuth || filters.twitterAuth || filters.googleAuth) {%> +
+
<% if(filters.facebookAuth) {%> + + Connect with Facebook + <% } %><% if(filters.googleAuth) {%> + + Connect with Google+ + <% } %><% if(filters.twitterAuth) {%> + + Connect with Twitter + <% } %> +
<% } %> - \ No newline at end of file +
+ diff --git a/app/templates/client/app/account(auth)/signup/signup(jade).jade b/app/templates/client/app/account(auth)/signup/signup(jade).jade index d5ce3071f..02bf47706 100644 --- a/app/templates/client/app/account(auth)/signup/signup(jade).jade +++ b/app/templates/client/app/account(auth)/signup/signup(jade).jade @@ -38,3 +38,21 @@ div(ng-include='"components/navbar/navbar.html"') = ' ' a.btn.btn-default.btn-lg.btn-register(href='/login') | Login + + + <% if(filters.facebookAuth || filters.twitterAuth || filters.googleAuth) {%> + hr + + div<% if(filters.facebookAuth) {%> + a.btn.btn-facebook(href='', ng-click='loginOauth("facebook")') + i.fa.fa-facebook + | Connect with Facebook + = ' '<% } %><% if(filters.googleAuth) {%> + a.btn.btn-google-plus(href='', ng-click='loginOauth("google")') + i.fa.fa-google-plus + | Connect with Google+ + = ' '<% } %><% if(filters.twitterAuth) {%> + a.btn.btn-twitter(href='', ng-click='loginOauth("twitter")') + i.fa.fa-twitter + | Connect with Twitter<% } %><% } %> + hr