fix(template): correct HTML structure in prefix_list

Adjusted the HTML structure in prefix_list template to fix the conditional rendering of the 'No prefixes' message. This change ensures that closing list tag renders correctly and prevents layout issues. The 'Create new prefix' button for superusers was also repositioned for better code readability.

Fixes layout glitch when no prefixes are present.
This commit is contained in:
Kumi 2024-06-23 17:00:04 +02:00
parent 8abb12bb06
commit 26d46853c4
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -8,9 +8,7 @@
{% if object_list|length == 0 %}
<li class="list-group-item">
No prefixes.
{% if not user.is_superuser %}You can request prefixes by contacting the administrator.
{% endif %}
{% endif %}
{% if not user.is_superuser %}You can request prefixes by contacting the administrator.{% endif %}
</li>
{% endif %}
{% for prefix in object_list %}