Apply suggestions from code review
authorMarcel Werk <burntime@woltlab.com>
Mon, 3 Jul 2023 10:08:26 +0000 (12:08 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 10:08:26 +0000 (12:08 +0200)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
templates/conversationList.tpl

index bd8697671544e52ff5ff627ba78aa111bd637155..8a3d928c7c446eb726b41ccd5f350a35da53d5f7 100644 (file)
                        {assign var='conversationCount' value=$__wcf->getConversationHandler()->getConversationCount()}
                        {assign var='maxConversationCount' value=$__wcf->session->getPermission('user.conversation.maxConversations')}
                        {assign var='conversationCountValue' value=$conversationCount/$maxConversationCount*100}
-                       <meter class="conversationQuotaMeter" min="0" max="100" low="90" high="99" value="{$conversationCountValue|intval}" aria-label="{lang}wcf.conversation.quota{/lang}">
-                               {#$conversationCount/$maxConversationCount*100}%
+                       <meter class="conversationQuotaMeter" min="0" max="100" low="90" high="99" value="{$conversationCountValue|ceil}" aria-label="{lang}wcf.conversation.quota{/lang}">
+                               {#$conversationCountValue}&nbsp;%
                        </meter>
                        <p><small>{lang}wcf.conversation.quota.description{/lang}</small></p>
                </div>