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:
parent
8abb12bb06
commit
26d46853c4
1 changed files with 11 additions and 13 deletions
|
@ -8,9 +8,7 @@
|
||||||
{% if object_list|length == 0 %}
|
{% if object_list|length == 0 %}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
No prefixes.
|
No prefixes.
|
||||||
{% if not user.is_superuser %}You can request prefixes by contacting the administrator.
|
{% if not user.is_superuser %}You can request prefixes by contacting the administrator.{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for prefix in object_list %}
|
{% for prefix in object_list %}
|
||||||
|
|
Loading…
Reference in a new issue