django-allauth-ens/allauth_ens/templates/socialaccount/snippets/provider_list.html

27 lines
747 B
HTML
Raw Normal View History

2017-08-03 12:40:52 +02:00
{% load socialaccount %}
{% if not socialaccount_providers %}
{% get_providers as socialaccount_providers %}
{% endif %}
{% for provider in socialaccount_providers %}
{% if provider.id == "openid" %}
{% for brand in provider.get_brands %}
<li class="method-wrapper provider-openid-{{ brand.id }}">
2017-08-03 12:40:52 +02:00
<a title="{{ brand.name }}"
href="{% provider_login_url provider.id openid=brand.openid_url process=process %}"
>
{{ brand.name }}
</a>
</li>
{% endfor %}
{% endif %}
<li class="method-wrapper provider-{{ provider.id }}">
2017-08-03 12:40:52 +02:00
<a title="{{ provider.name }}"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"
2017-08-03 12:40:52 +02:00
>
{{ provider.name }}
</a>
</li>
{% endfor %}