2015-01-17 23:08:41 +01:00
|
|
|
{% load socialaccount %}
|
|
|
|
|
2015-12-19 20:11:23 +01:00
|
|
|
{% get_providers as socialaccount_providers %}
|
2023-04-14 19:56:41 +02:00
|
|
|
<ul class="list-unstyled">
|
|
|
|
{% for provider in socialaccount_providers %}
|
|
|
|
{% if provider.id == "openid" %}
|
|
|
|
{% for brand in provider.get_brands %}
|
|
|
|
<li>
|
|
|
|
<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>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
<li>
|
|
|
|
<a title="{{ provider.name }}"
|
|
|
|
class="socialaccount_provider {{ provider.id }}"
|
|
|
|
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"><i
|
2023-04-16 22:11:32 +02:00
|
|
|
class="{% if provider.id == 'google' %}bi-google{% elif provider.id == 'linkedin_oauth2' %}bi-linkedin{% endif %}"></i> {{ provider.name }}
|
2023-04-14 19:56:41 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|