Commit | Line | Data |
---|---|---|
11e9145a | 1 | {if !$usersOnlineShowRecord|isset}{assign var='usersOnlineShowRecord' value=true}{/if} |
404acdb9 | 2 | {if MODULE_USERS_ONLINE && $__wcf->session->getPermission('user.profile.canViewUsersOnlineList') && $usersOnlineList->stats[total]} |
af3d18c7 | 3 | <section class="box" data-static-box-identifier="com.woltlab.wcf.UsersOnlineInfo"> |
bb6ef47e | 4 | <h2 class="boxTitle"><a href="{link controller='UsersOnlineList'}{/link}">{lang}wcf.user.usersOnline{/lang}</a> <span class="badge">{#$usersOnlineList->stats[total]}</span></h2> |
11e9145a | 5 | |
bb6ef47e | 6 | <div class="boxContent"> |
95961bdf MW |
7 | <ul class="inlineList dotSeparated"> |
8 | <li>{lang}wcf.user.usersOnline.detail{/lang}</li> | |
9 | {if $usersOnlineShowRecord && USERS_ONLINE_RECORD}<li>{lang}wcf.user.usersOnline.record{/lang}</li>{/if} | |
fe17bd5f | 10 | </ul> |
11e9145a | 11 | |
6909a35a | 12 | {if $usersOnlineList|count} |
95961bdf | 13 | <ul class="inlineList commaSeparated"> |
6909a35a | 14 | {foreach from=$usersOnlineList->getObjects() item=userOnline} |
b5332f78 | 15 | <li>{user object=$userOnline}</li> |
6909a35a MS |
16 | {/foreach} |
17 | </ul> | |
18 | {/if} | |
95961bdf MW |
19 | </div> |
20 | ||
64d826c0 MW |
21 | {if USERS_ONLINE_ENABLE_LEGEND && $usersOnlineList->getUsersOnlineMarkings()|count} |
22 | <div class="boxContent"> | |
95961bdf MW |
23 | <dl class="plain inlineDataList usersOnlineLegend"> |
24 | <dt>{lang}wcf.user.usersOnline.marking.legend{/lang}</dt> | |
25 | <dd> | |
26 | <ul class="inlineList commaSeparated"> | |
27 | {foreach from=$usersOnlineList->getUsersOnlineMarkings() item=usersOnlineMarking} | |
28 | <li>{@$usersOnlineMarking}</li> | |
29 | {/foreach} | |
30 | </ul> | |
31 | </dd> | |
32 | ||
33 | </dl> | |
64d826c0 MW |
34 | </div> |
35 | {/if} | |
bb6ef47e | 36 | </section> |
404acdb9 | 37 | {/if} |