Unify HTML code for number of times reactions was used
authorMatthias Schmidt <gravatronics@live.com>
Sun, 8 Sep 2019 18:03:39 +0000 (20:03 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 8 Sep 2019 18:03:39 +0000 (20:03 +0200)
com.woltlab.wcf/templates/__topReaction.tpl
wcfsetup/install/files/acp/templates/__topReaction.tpl

index 9c7e8bcce72d5d6496f6a4d0a6ed424aeaa9264f..5203a15c744e073d77bb619b89ac96ecdbda6f2e 100644 (file)
@@ -2,11 +2,13 @@
 {if $topReaction}
        {if $render === 'tiny'}
                <span class="topReactionTiny jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
-                       {@$topReaction[reaction]->renderIcon()} {#$topReaction[count]}
+                       {@$topReaction[reaction]->renderIcon()}
+                       <span class="reactionCount">{$topReaction[count]|shortUnit}</span>
                </span>
        {elseif $render === 'short'}
                <span class="topReactionShort jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
-                       {@$topReaction[reaction]->renderIcon()} × {#$topReaction[count]}
+                       {@$topReaction[reaction]->renderIcon()}
+                       <span class="reactionCount">{$topReaction[count]|shortUnit}</span>
                </span>
        {elseif $render === 'full'}
                <span class="topReactionFull">
index 9c7e8bcce72d5d6496f6a4d0a6ed424aeaa9264f..5203a15c744e073d77bb619b89ac96ecdbda6f2e 100644 (file)
@@ -2,11 +2,13 @@
 {if $topReaction}
        {if $render === 'tiny'}
                <span class="topReactionTiny jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
-                       {@$topReaction[reaction]->renderIcon()} {#$topReaction[count]}
+                       {@$topReaction[reaction]->renderIcon()}
+                       <span class="reactionCount">{$topReaction[count]|shortUnit}</span>
                </span>
        {elseif $render === 'short'}
                <span class="topReactionShort jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
-                       {@$topReaction[reaction]->renderIcon()} × {#$topReaction[count]}
+                       {@$topReaction[reaction]->renderIcon()}
+                       <span class="reactionCount">{$topReaction[count]|shortUnit}</span>
                </span>
        {elseif $render === 'full'}
                <span class="topReactionFull">