amiibofindr/amiibofindr/templates/socialaccount/snippets/provider_list.html

20 lines
836 B
HTML

{% load socialaccount %}
{% get_providers as socialaccount_providers %}
{% for provider in socialaccount_providers %}
{% if provider.id == "openid" %}
{% for brand in provider.get_brands %}
<div class="item">
<a title="{{ brand.name }}"
class="socialaccount_provider {{ provider.id }} {{ brand.id }}"
href="{% provider_login_url provider.id openid=brand.openid_url process=process %}"
>{{ brand.name }}</a>
</div>
{% endfor %}
{% endif %}
<a title="{{ provider.name }}" class="socialaccount_provider ui button {{ provider.id }} {% if provider.id == 'google' %}plus{% endif %}"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}">
<i class="icon {{ provider.name|lower }}"></i> {{ provider.name }}</a>
{% endfor %}