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
This commit is contained in:
Yohan Boniface 2023-08-21 17:16:34 +02:00
parent 25b3a66351
commit a89e6622ed

View file

@ -19,6 +19,7 @@
<input type="submit" value="{% trans 'Save' %}" />
</form>
</div>
{% if backends.backends|length %}
<div class="row">
<h3>{% trans "Your current providers" %}</h3>
<ul>
@ -44,5 +45,6 @@
</ul>
</div>
</div>
{% endif %}
</div>
{% endblock maincontent %}