Commit cf380fa2 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added tumblr and github to welcome walkthrough social connect options

parent 5c36990e
......@@ -36,12 +36,14 @@
</div>
</div>
<br />
{% load socialaccount %}
{% get_social_accounts request.user as accounts %}
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-offset-2 col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
......@@ -51,7 +53,7 @@
<div class="panel-body">
<div class="row text-center">
{% comment %} is it not possible to redirect the login failure? {% endcomment %}
<div class="col-md-3">
<div class="col-md-4">
{% if accounts.facebook %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-facebook fa-3x"></i></h4>
......@@ -63,7 +65,7 @@
</a>
{% endif %}
</div>
<div class="col-md-3">
<div class="col-md-4">
{% if accounts.google %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-google fa-3x"></i></h4>
......@@ -75,7 +77,7 @@
</a>
{% endif %}
</div>
<div class="col-md-3">
<div class="col-md-4">
{% if accounts.twitter %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-twitter fa-3x"></i></h4>
......@@ -87,7 +89,10 @@
</a>
{% endif %}
</div>
<div class="col-md-3">
</div>
<br />
<div class="row text-center">
<div class="col-md-4">
{% if accounts.instagram %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-instagram fa-3x"></i></h4>
......@@ -99,6 +104,30 @@
</a>
{% endif %}
</div>
<div class="col-md-4">
{% if accounts.tumblr %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-tumblr fa-3x"></i></h4>
<h4>Tumblr</h4>
{% else %}
<a href="{% provider_login_url 'tumblr' process='connect' %}">
<h4><i class="fa fa-tumblr fa-3x"></i></h4>
<h4>Tumblr</h4>
</a>
{% endif %}
</div>
<div class="col-md-4">
{% if accounts.github %}
<p><i class="fa fa-check-square-o"></i> Verified!</p>
<h4><i class="fa fa-github fa-3x"></i></h4>
<h4>Github</h4>
{% else %}
<a href="{% provider_login_url 'github' process='connect' %}">
<h4><i class="fa fa-github fa-3x"></i></h4>
<h4>Github</h4>
</a>
{% endif %}
</div>
</div>
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment