def extra_settings(request):
return {
'STATIC_URL': settings.STATIC_URL,
- 'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL)
+ 'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL),
+ 'USE_OPENID': getattr(settings, 'USE_OPENID', False)
}
</ol>
</form>
+{% if USE_OPENID %}
<h1>{% trans "Sign in using:" %}</h1>
<ul class="socialaccount_providers">
</ul>
{% include "socialaccount/snippets/login_extra.html" %}
+{% endif %}
{% block extra %}
{% endblock %}
{% block extra %}
+{% if USE_OPENID %}
<h1>{% trans "Sign in using:" %}</h1>
<ul class="socialaccount_providers">
</ul>
{% include "socialaccount/snippets/login_extra.html" %}
+{% endif %}
{% endblock %}
<p>{% trans "You currently have no social network accounts connected to this account." %}</p>
{% endif %}
+{% if USE_OPENID %}
<h2>{% trans 'Add a 3rd Party Account' %}</h2>
<ul class="socialaccount_providers">
</ul>
{% include "socialaccount/snippets/login_extra.html" %}
+{% endif %}
</div>
{% endblock %}