From a89e6622eda51af6065f48aa332f88da30da546e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 21 Aug 2023 17:16:34 +0200 Subject: [PATCH] User profile page: only display providers if there are some Someone uses uMap with classic auth username/password, and they don't want those empty HTML elements --- umap/templates/auth/user_form.html | 48 ++++++++++++++++-------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/umap/templates/auth/user_form.html b/umap/templates/auth/user_form.html index c5401399..06d04079 100644 --- a/umap/templates/auth/user_form.html +++ b/umap/templates/auth/user_form.html @@ -19,30 +19,32 @@ -
-

{% trans "Your current providers" %}

- -
-
-

{% trans "Connect to another provider" %}

-

- {% blocktrans %}It's a good habit to connect your account to more than one provider, in case one provider becomes unavailable, temporarily or even permanently.{% endblocktrans %} -

-
-
+
+

{% trans "Connect to another provider" %}

+

+ {% blocktrans %}It's a good habit to connect your account to more than one provider, in case one provider becomes unavailable, temporarily or even permanently.{% endblocktrans %} +

+
+ +
+
+ {% endif %}
{% endblock maincontent %}