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