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:
parent
25b3a66351
commit
a89e6622ed
1 changed files with 25 additions and 23 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue