Show legend only when users are listed
authorMarcel Werk <burntime@woltlab.com>
Wed, 11 May 2022 10:25:15 +0000 (12:25 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 11 May 2022 10:25:15 +0000 (12:25 +0200)
com.woltlab.wcf/templates/boxUsersOnline.tpl

index e6f63aee507fde66bde5e2e4aba76e901678d501..bc596d943f3ad8597b9be5be921b127a8398d1ac 100644 (file)
@@ -9,18 +9,17 @@
                        <li>{user object=$userOnline}</li>
                {/foreach}
        </ul>
-{/if}
 
-{if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count}
-       <dl class="plain inlineDataList usersOnlineLegend">
-               <dt>{lang}wcf.user.usersOnline.marking.legend{/lang}</dt>
-               <dd>
-                       <ul class="inlineList commaSeparated">
-                               {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking}
-                                       <li>{@$usersOnlineMarking}</li>
-                               {/foreach}
-                       </ul>
-               </dd>
-       
-       </dl>
+       {if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count}
+               <dl class="plain inlineDataList usersOnlineLegend">
+                       <dt>{lang}wcf.user.usersOnline.marking.legend{/lang}</dt>
+                       <dd>
+                               <ul class="inlineList commaSeparated">
+                                       {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking}
+                                               <li>{@$usersOnlineMarking}</li>
+                                       {/foreach}
+                               </ul>
+                       </dd>
+               </dl>
+       {/if}
 {/if}