Added unread badge
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 15:19:59 +0000 (17:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 15:20:08 +0000 (17:20 +0200)
templates/__mobileMenuConversation.tpl

index 0e616657e8a9281b3572d6eedc94202d3020e198..98c930234cc73cb5a813b9992823b516c68dd46e 100644 (file)
@@ -1,6 +1,7 @@
 <li class="menuOverlayItem" data-more="com.woltlab.wcf.conversation">
-       <a href="{link controller='ConversationList'}{/link}" class="menuOverlayItemLink box24">
+       <a href="{link controller='ConversationList'}{/link}" class="menuOverlayItemLink menuOverlayItemBadge box24" data-badge-identifier="unreadConversations">
                <span class="icon icon24 fa-comments"></span>
                <span class="menuOverlayItemTitle">{lang}wcf.conversation.conversations{/lang}</span>
+               {if $__wcf->getConversationHandler()->getUnreadConversationCount()}<span class="badge badgeUpdate">{#$__wcf->getConversationHandler()->getUnreadConversationCount()}</span>{/if}
        </a>
 </li>