X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..811c2c30277f11cc7a35a347a74e4112f97569ac:/src/wolnelektury/templates/socialaccount/snippets/provider_list.html diff --git a/src/wolnelektury/templates/socialaccount/snippets/provider_list.html b/src/wolnelektury/templates/socialaccount/snippets/provider_list.html index 80f9c2f2d..61b39024a 100644 --- a/src/wolnelektury/templates/socialaccount/snippets/provider_list.html +++ b/src/wolnelektury/templates/socialaccount/snippets/provider_list.html @@ -1,13 +1,15 @@ {% load socialaccount %} -{% load static from staticfiles %} -{% for provider in socialaccount.providers %} +{% load static from static %} + +{% get_providers as providers %} +{% for provider in 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 %}" + href="{% provider_login_url provider.id openid=brand.openid_url process=process %}" ><img alt="{{ brand.name }}" src="{% static 'img/auth/'|add:brand.id|add:'.png' %}" /></a> </li> @@ -15,7 +17,7 @@ {% endif %} <li> <a title="{{provider.name}}" class="socialaccount_provider {{provider.id}}" - href="{% provider_login_url provider.id %}" + href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}" ><img alt="{{ provider.name }}" src="{% static 'img/auth/'|add:provider.id|add:'.png' %}" /></a> </li>