From 81e2f9a628c62408af174900318d2736ae21e496 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Tue, 28 Oct 2025 16:46:19 +0000 Subject: [PATCH] Clarify some more conditions in the templates --- templates/form_post.html | 2 +- templates/pages/index.html | 2 +- templates/pages/upstream_oauth2/do_register.html | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/form_post.html b/templates/form_post.html index 1d0267e9f..71882c8ab 100644 --- a/templates/form_post.html +++ b/templates/form_post.html @@ -15,7 +15,7 @@ Please see LICENSE files in the repository root for full details. -
+ {% for key, value in params|items %} {% endfor %} diff --git a/templates/pages/index.html b/templates/pages/index.html index b8a0d7547..3ef8ea51b 100644 --- a/templates/pages/index.html +++ b/templates/pages/index.html @@ -19,7 +19,7 @@ Please see LICENSE files in the repository root for full details. - {% if current_session %} + {% if current_session is not none %}

{{ _("mas.navbar.signed_in_as", username=current_session.user.username) }}

diff --git a/templates/pages/upstream_oauth2/do_register.html b/templates/pages/upstream_oauth2/do_register.html index 2a57a6aca..f57564c43 100644 --- a/templates/pages/upstream_oauth2/do_register.html +++ b/templates/pages/upstream_oauth2/do_register.html @@ -26,7 +26,7 @@ Please see LICENSE files in the repository root for full details.

- {% elif upstream_oauth_provider.human_name %} + {% elif upstream_oauth_provider.human_name is not none %}
{{ icon.user_profile_solid() }} @@ -55,9 +55,9 @@ Please see LICENSE files in the repository root for full details.
{% endif %} - {% if upstream_oauth_provider.human_name %} + {% if upstream_oauth_provider.human_name is not none %}