2014-06-12 22:08:55 +08:00
|
|
|
Template.usersList.helpers
|
2015-04-17 02:19:40 +08:00
|
|
|
getInfoNumberOfUsers: ->
|
2015-05-06 04:15:33 +08:00
|
|
|
numberUsers = BBB.getNumberOfUsers()
|
2015-04-21 23:14:49 +08:00
|
|
|
if numberUsers > 8
|
|
|
|
return "Users: #{numberUsers}"
|
2015-04-17 02:19:40 +08:00
|
|
|
# do not display the label if there are just a few users
|
2015-05-06 22:52:43 +08:00
|
|
|
|
|
|
|
Template.usersList.events
|
|
|
|
"click .closeUserlistIcon": (event, template) ->
|
2015-05-07 14:15:08 +08:00
|
|
|
toggleUsersList()
|