Skip to content

Commit a408f58

Browse files
author
Sameer Dhar
committed
feat(app): added oath buttons to signup page
1 parent 306fa12 commit a408f58

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

app/templates/client/app/account(auth)/signup/signup(html).html

+16-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,22 @@ <h1>Sign up</h1>
6262
Login
6363
</a>
6464
</div>
65+
66+
<% if(filters.facebookAuth || filters.twitterAuth || filters.googleAuth) {%>
67+
<hr>
68+
<div><% if(filters.facebookAuth) {%>
69+
<a class="btn btn-facebook" href="" ng-click="loginOauth('facebook')">
70+
<i class="fa fa-facebook"></i> Connect with Facebook
71+
</a><% } %><% if(filters.googleAuth) {%>
72+
<a class="btn btn-google-plus" href="" ng-click="loginOauth('google')">
73+
<i class="fa fa-google-plus"></i> Connect with Google+
74+
</a><% } %><% if(filters.twitterAuth) {%>
75+
<a class="btn btn-twitter" href="" ng-click="loginOauth('twitter')">
76+
<i class="fa fa-twitter"></i> Connect with Twitter
77+
</a><% } %>
78+
</div><% } %>
6579
</form>
6680
</div>
6781
</div>
68-
</div>
82+
<hr>
83+
</div>

app/templates/client/app/account(auth)/signup/signup(jade).jade

+18
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,21 @@ div(ng-include='"components/navbar/navbar.html"')
3838
= ' '
3939
a.btn.btn-default.btn-lg.btn-register(href='/login')
4040
| Login
41+
42+
43+
<% if(filters.facebookAuth || filters.twitterAuth || filters.googleAuth) {%>
44+
hr
45+
46+
div<% if(filters.facebookAuth) {%>
47+
a.btn.btn-facebook(href='', ng-click='loginOauth("facebook")')
48+
i.fa.fa-facebook
49+
| Connect with Facebook
50+
= ' '<% } %><% if(filters.googleAuth) {%>
51+
a.btn.btn-google-plus(href='', ng-click='loginOauth("google")')
52+
i.fa.fa-google-plus
53+
| Connect with Google+
54+
= ' '<% } %><% if(filters.twitterAuth) {%>
55+
a.btn.btn-twitter(href='', ng-click='loginOauth("twitter")')
56+
i.fa.fa-twitter
57+
| Connect with Twitter<% } %><% } %>
58+
hr

0 commit comments

Comments
 (0)