{% load socialaccount %}
{% load static %}

{% get_providers as socialaccount_providers %}

{% for provider in socialaccount_providers %}
{% if provider.id == "openid" %}
{% for brand in provider.get_brands %}
<li class="list-inline-item">
  <a title="{{brand.name}}"
     class="socialaccount_provider {{provider.id}} {{brand.id}} btn btn-outline-secondary"
     href="{% provider_login_url provider openid=brand.openid_url process=process %}">
    <img alt="" src="{% static 'django-mailman3/img/login/' %}{{ brand.id }}.png" />
    {{brand.name}}
  </a>
</li>
{% endfor %}
{% endif %}
<li class="list-inline-item">
  <a title="{{provider.name}}" class="socialaccount_provider {{provider.id}} btn btn-outline-secondary"
     href="{% provider_login_url provider process=process scope=scope auth_params=auth_params %}">
    <img alt="" src="{% static 'django-mailman3/img/login/' %}{{ provider.id }}.png" />
    {{provider.name}}
  </a>
</li>
{% endfor %}
