Solved link bug with subitems

This commit is contained in:
kevinveenbirkenbach committed 2025-01-10 13:56:37 +01:00
1 parent dc058d16df
commit 28cd3e1f2f
3 files changed
+89 -75

No files matched your search

+5 -1
View File
@@ -4,7 +4,11 @@
{% if subitem.subitems %}
<li class="dropdown-submenu position-relative">
<a class="dropdown-item dropdown-toggle" href="#" title="{{ subitem.description }}">
<i class="{{ subitem.icon.class }}"></i> {{ subitem.name }}
{% if subitem.icon is defined and subitem.icon.class is defined %}
<i class="{{ subitem.icon.class }}"></i> {{ subitem.name }}
{% else %}
<p>Missing icon in subitem: {{ subitem }}</p>
{% endif %}
</a>
<ul class="dropdown-menu">
{{ render_subitems(subitem.subitems) }}