From 99c3f1e444fd4f6351eab60d17c6124a05f65b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 27 Nov 2018 09:17:46 +0100 Subject: [PATCH] templates: use non-legacy "blocks" context variable for login template (#28371) --- templates/authentic2/login.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/authentic2/login.html b/templates/authentic2/login.html index a179b991..a53fa75b 100644 --- a/templates/authentic2/login.html +++ b/templates/authentic2/login.html @@ -14,15 +14,15 @@ {% block content %} -
+
-{% for name, content in methods %} +{% for id, login_block in blocks.iteritems %}
-{% if methods|length == 1 %} -

{% if forloop.counter0 %}{{name}}{% else %}Connexion{% endif %}

+{% if blocks|length == 1 %} +

{% if forloop.counter0 %}{{login_block.name}}{% else %}Connexion{% endif %}

{% endif %} -
-{{ content|safe }} +
+{{ login_block.content|safe }}
{% endfor %} -- 2.20.0.rc1