{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% extends "layout.html" %} {% block title %}{{_("Welcome")}}{% endblock %} {% block content %}
{% if error is defined and error %} {% endif %} {% if allow_registration %}
{% endif %} {% set auth_meths = auth_methods.items() %} {% set loop_info = namespace(remaining=0,on_line=0,authid=0) %} {% set loop_info.remaining = auth_meths | length %} {% set loop_info.on_line = (loop_info.remaining, 4) | min %} {% if loop_info.remaining %} {% if allow_registration %}
{% endif %}
{{_("Sign in with")}}
{% endif %} {% set loop_info.authid = 0 %} {% for id, auth_method in auth_meths %} {%if loop_info.authid % loop_info.on_line == 0 %}
{% endif %} {% set loop_info.remaining = loop_info.remaining - 1 %} {% if loop_info.authid % loop_info.on_line == loop_info.on_line-1 %}
{% set loop_info.on_line = (loop_info.remaining, 4) | min %} {% set loop_info.authid = 0 %} {% else %} {% set loop_info.authid = loop_info.authid + 1 %} {% endif %} {% endfor %}
{% endblock %}