From c85d19454ca844aeaa83527393cf64451d4dcabf Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 11 May 2022 12:25:15 +0200 Subject: [PATCH] Show legend only when users are listed --- com.woltlab.wcf/templates/boxUsersOnline.tpl | 25 ++++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) 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} -- 2.20.1