--- a/web/ldtplatform/templates/registration/login.html Wed Nov 28 12:31:27 2012 +0100
+++ b/web/ldtplatform/templates/registration/login.html Wed Nov 28 16:40:18 2012 +0100
@@ -3,30 +3,12 @@
{% load absstatic %}
{% load static %}
-{% block js_declaration %}
-
- <script type="text/javascript">
- $(document).ready(function(){
- $('.social_link').each(function(i){
- {% if social_list %}
- {% for backend_name in social_list %}
- var coucou='ldt/img/logo_{{backend_name}}.png'
- {% with "ldt/img/logo_"|add:backend_name|add:".png" as src_path %}
- document.getElementById('{{backend_name}}_logo_id').src='{% absstatic src_path %}';
- {% endwith %}
- {% endfor %}
- {% endif %}
- });
- });
- </script>
-{% endblock %}
{% block css_import %}
{{ block.super }}
<link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/>
<link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' />
{% endblock %}
-
{% block login %}
{% endblock %}
@@ -58,7 +40,7 @@
<ul>
{% for backend_name in social_list %}
- <li><a href="{{ backend_name }}"><img class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li>
+ <li><a href="{{ backend_name }}"><img src='{% absstatic "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li>
{% endfor %}
{% comment %}{{social_list|safe}}{% endcomment %}