Indicate when no paths have been specified

This commit is contained in:
George Lacey 2021-05-11 16:34:17 +01:00
parent 4e75b89212
commit e7cb649cb4

View File

@ -68,19 +68,19 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if location_list %}
<div style="width: 600px;" class="repo-container shadow rounded bg-primary overflow-hidden"> <div style="width: 600px;" class="repo-container shadow rounded bg-primary overflow-hidden">
<h2 class="h2">Paths</h2> <h2 class="h2">Paths</h2>
{% if location_list %}
{% for location in location_list %} {% for location in location_list %}
<dl class="att-label row ps-3"> <dl class="att-label row ps-3">
<dt class="col-3">{{ location.label }}</dt> <dt class="col-3">{{ location.label }}</dt>
<dd class="col-9">{{ location.short_description }}</dd> <dd class="col-9">{{ location.short_description }}</dd>
</dl> </dl>
{% endfor %} {% endfor %}
</div>
{% else %} {% else %}
<h3 class="h3">None found</h3>
{% endif %} {% endif %}
</div>
</div> </div>
{% endblock %} {% endblock %}