DX: improve performance for counting feature linked to person

This commit is contained in:
2023-02-28 17:22:54 +01:00
parent 77c545344c
commit dbcc425f5f
4 changed files with 43 additions and 7 deletions

View File

@@ -18,12 +18,12 @@
<div class="list-group vertical-menu {{ 'menu-' ~ menus.name }}">
{% for menu in menus %}
<a class="list-group-item list-group-item-action"
<a class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"
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 }}
{% if menu.extras.counter is defined and menu.extras.counter is not null %}
<span class="badge rounded-pill bg-secondary notification-counter">{{ menu.extras.counter }}</span>
{% endif %}
</a>
{% endfor %}
</div>