Fix adding quick menus to list_with_period.html.twig

- update twig namespaces
- move twig file within Resources
This commit is contained in:
2024-06-13 11:47:07 +02:00
parent d60ba3ecb2
commit cc0030c1cd
4 changed files with 17 additions and 29 deletions

View File

@@ -0,0 +1,20 @@
{% if menus|length > 0 %}
<li class="dropdown">
<a class="dropdown-toggle btn btn-sm btn-outline-primary"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<i class="fa fa-flash"></i>
</a>
<div class="dropdown-menu">
{% for menu in menus %}
<a class="dropdown-item"
href="{{ menu.uri }}"
><i class="fa fa-{{- menu.extras.icon }} fa-fw"></i>
{{ menu.label|trans }}
</a>
{% endfor %}
</div>
</li>
{% endif %}