Revision 3dc9e775 snf-astakos-app/astakos/im/templates/im/login_base.html

b/snf-astakos-app/astakos/im/templates/im/login_base.html
18 18
        {% include master_auth_provider.login_template %}
19 19
      </div>
20 20

  
21
      <div class="extralogin" 
22
          {% comment %}
23
          style="{% if not last_login_method or last_login_method == master_auth_provider.module %}display:none{% endif %}"
24
          {% endcomment %}
25
          >
21
      <div class="extralogin">
26 22
      {% for provider in auth_providers %}
27 23
      
28 24
        {% if not provider == master_auth_provider %}
29 25
            {% include provider.login_prompt_template %}
30 26
        {% endif %}
31 27
      {% endfor %}
32
      {% comment %}
33
        <div class="bottom">
34
        {% block body.signup %}
35
        {% for provider in auth_providers %}
36
              {% if provider.is_available_for_create %}
37
                  {% include provider.signup_prompt_template %}
38
              {% endif %}
39
          {% endfor %}
40
        {% endblock body.signup %}
41
        </div>
42
      {% endcomment %}
43 28
    </div>
44 29
    </div>
45
    <script>
46
      $(document).ready(function(){
47
        if (window.location.toString().match(/#other-login-methods/)) {
48
            $(".extralogin").show();
49
        }
50

  
51
        $(".other-logins").click(function(e){
52
            e.preventDefault();
53
            $(".extralogin").slideToggle();
54
            if (window.location.toString().match(/#other-login-methods/)) {
55
              window.location = window.location.hash = "#"
56
            } else {
57
              window.location = window.location.hash = "#other-login-methods"
58
            }
59
        })
60

  
61
        });    
62
    </script>
63 30
 
64 31
{% endblock body.right%}

Also available in: Unified diff