{# 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 %}
{{ 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 %}