web/ldtplatform/templates/registration/login.html
changeset 59 a06fab661ac4
parent 57 795f01224eef
child 60 77d07e49e245
--- a/web/ldtplatform/templates/registration/login.html	Thu Apr 14 18:00:39 2011 +0200
+++ b/web/ldtplatform/templates/registration/login.html	Mon Apr 18 13:12:57 2011 +0200
@@ -32,8 +32,15 @@
 	        <ul id="login_fields_list">
 	        {{form.as_ul}}
 	        </ul>
-            <p>{% trans "Or login with your external account" %}</p>
-            {{social_list|safe}}
+            {% if social_list %}
+            <p>{% trans "Or login with your external account" %}&nbsp;:</p>
+            <ul>
+            {% for backend_name in social_list %}
+            <li><a href="{{ backend_name }}"><img src="{{LDT_MEDIA_PREFIX}}img/logo_{{backend_name}}.png" />&nbsp;{{ backend_name }}</a></li>
+            {% endfor %}
+            {% comment %}{{social_list|safe}}{% endcomment %}
+            </ul>
+            {% endif %}
 	        </div>
 	       	<div id="login_links" class="span-12 last">
 		       	<div id="login_links_list" class="span-12 last">