Move checking membership to Membership.
[wolnelektury.git] / src / wolnelektury / templates / socialaccount / snippets / provider_list.html
1 {% load socialaccount %}
2 {% load static from staticfiles %}
3
4 {% get_providers as providers %}
5 {% for provider in providers %}
6     {% if provider.id == "openid" %}
7         {% for brand in provider.get_brands %}
8             <li>
9                 <a title="{{brand.name}}" 
10                     class="socialaccount_provider {{provider.id}} {{brand.id}}" 
11                     href="{% provider_login_url provider.id openid=brand.openid_url process=process %}"
12                     ><img alt="{{ brand.name }}"
13                         src="{% static 'img/auth/'|add:brand.id|add:'.png' %}" /></a>
14             </li>
15         {% endfor %}
16     {% endif %}
17     <li>
18         <a title="{{provider.name}}" class="socialaccount_provider {{provider.id}}" 
19             href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"
20             ><img alt="{{ provider.name }}"
21                 src="{% static 'img/auth/'|add:provider.id|add:'.png' %}" /></a>
22     </li>
23 {% endfor %}