#set($atLeastOne = false)
#if ($imclient.isShowGroupsInRoster())
#foreach ($rosterGroup in $imclient.getRoster())
-
$rosterGroup.getName() $imclient.buddyCountOnlineForGroup($rosterGroup.getName())
#foreach($entry in $imclient.getRosterGroupEntries($rosterGroup.getName()))
##renders the link
#set ($entryAppendix = $imclient.createAppendixFromGroupName($rosterGroup.getName()))
#set ($entryName = "$entry$entryAppendix")
- $r.render($entryName)
#set($atLeastOne = true)
#end
#end
#else
## show only distinct users without group
#foreach ($entry in $imclient.getDistinctRoster())
##renders the link
- $r.render($entry)
#set($atLeastOne = true)
#end
#end
#if ($atLeastOne)
#end