FEATURE [menu][counters] show counter icon for person resources and residential address if there are any

This commit is contained in:
2023-02-24 13:54:44 +01:00
parent 6254303392
commit 27f13e0dd1
2 changed files with 14 additions and 1 deletions

View File

@@ -17,8 +17,12 @@
<div class="list-group vertical-menu {{ 'menu-' ~ menus.name }}">
{% for menu in menus %}
<a class="list-group-item list-group-item-action"
href="{{ menu.uri }}">
{% if menu.extras.counter is defined and menu.extras.counter is not null %}
<span class="badge rounded-pill bg-danger notification-counter">{{ menu.extras.counter }}</span>
{% endif %}
{{ menu.label|upper }}
</a>
{% endfor %}