From: Marcel Werk Date: Wed, 11 May 2022 10:25:15 +0000 (+0200) Subject: Show legend only when users are listed X-Git-Tag: 5.5.0_Beta_3~46^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c85d19454ca844aeaa83527393cf64451d4dcabf;p=GitHub%2FWoltLab%2FWCF.git Show legend only when users are listed --- diff --git a/com.woltlab.wcf/templates/boxUsersOnline.tpl b/com.woltlab.wcf/templates/boxUsersOnline.tpl index e6f63aee50..bc596d943f 100644 --- a/com.woltlab.wcf/templates/boxUsersOnline.tpl +++ b/com.woltlab.wcf/templates/boxUsersOnline.tpl @@ -9,18 +9,17 @@
  • {user object=$userOnline}
  • {/foreach} -{/if} -{if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count} -
    -
    {lang}wcf.user.usersOnline.marking.legend{/lang}
    -
    -
      - {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking} -
    • {@$usersOnlineMarking}
    • - {/foreach} -
    -
    - -
    + {if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count} +
    +
    {lang}wcf.user.usersOnline.marking.legend{/lang}
    +
    +
      + {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking} +
    • {@$usersOnlineMarking}
    • + {/foreach} +
    +
    +
    + {/if} {/if}