2014-06-12 22:08:55 +08:00
|
|
|
Template.usersList.helpers
|
2015-04-17 02:19:40 +08:00
|
|
|
getInfoNumberOfUsers: ->
|
|
|
|
numberUsers = Meteor.Users.find().count()
|
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) ->
|
|
|
|
toggleUsersList()
|