add notification counter in user menu

This commit is contained in:
2018-04-27 22:22:21 +02:00
parent da0db5ba9a
commit 9b4bf04c9c
10 changed files with 179 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
<div class="li-content">
<a href="javascript:void(0)" style="font-size: 0.8em; font-family: 'Open Sans'; font-weight:300;">
{{ 'Welcome' | trans }}<br/>
<b>{{ app.user.username }}</b>
<b>{{ app.user.username }}{{ render(controller('ChillMainBundle:UI:showNotificationUserCounter')) }}</b>
</a>
</div>
<ul class="submenu width-11-em">

View File

@@ -0,0 +1 @@
{% if nb > 0 %}<span class="notification-counter">{{ nb }}{% endif %}