aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/auth
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-04-08 17:01:55 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-04-08 17:01:55 +0100
commitbbbcc4565830e48e42af95c4e112587e8b5fda4b (patch)
tree8145f8d9abd7d9ed09be434f74141f8791fac6af /templates/web/base/auth
parentd04f0f466f74e2fb6caab2da259664f5eb02079e (diff)
Add Twitter social login.
Diffstat (limited to 'templates/web/base/auth')
-rw-r--r--templates/web/base/auth/general.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/web/base/auth/general.html b/templates/web/base/auth/general.html
index d856dc19a..253dc26a1 100644
--- a/templates/web/base/auth/general.html
+++ b/templates/web/base/auth/general.html
@@ -14,13 +14,23 @@
<input type="hidden" name="r" value="[% c.req.params.r | html %]">
-[% IF NOT oauth_need_email AND c.config.FACEBOOK_APP_ID %]
+[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %]
+ [% IF c.config.FACEBOOK_APP_ID %]
<div class="form-box">
<button name="facebook_sign_in" id="facebook_sign_in" value="facebook_sign_in" class="btn btn--block btn--social btn--facebook">
<img alt="" src="/i/facebook-icon-32.png" width="17" height="32">
Log in with Facebook
</button>
</div>
+ [% END %]
+ [% IF c.config.TWITTER_KEY %]
+ <div class="form-box">
+ <button name="twitter_sign_in" id="twitter_sign_in" value="twitter_sign_in" class="btn btn--block btn--social btn--twitter">
+ <img alt="" src="/i/twitter-icon-32.png" width="17" height="32">
+ Log in with Twitter
+ </button>
+ </div>
+ [% END %]
<div id="js-social-email-hide">
[% END %]
@@ -56,7 +66,7 @@
[% END %]
</div>
-[% IF NOT oauth_need_email AND c.config.FACEBOOK_APP_ID %]
+[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %]
</div>
[% END %]