Browse Source

added total registered user count to admin page

Akira Laine 9 years ago
parent
commit
9b79d1af20
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/client/client.js
  2. 1 1
      app/client/templates/admin.html

+ 1 - 0
app/client/client.js

@@ -1104,6 +1104,7 @@ Template.admin.helpers({
       return Session.get("userNum");
   },
   allUsers: function(){
+      return Meteor.users.find().count();
   },
   playlists: function() {
       var playlists = Playlists.find({}).fetch();

+ 1 - 1
app/client/templates/admin.html

@@ -33,7 +33,7 @@
                 <h1>Site statistics</h1>
               </div>
               <p>Total Users Online: {{usersOnline}}</p>
-              <p>Total Registered Users: </p>
+              <p>Total Registered Users: {{allUsers}}</p>
               <a href="/admin/queues">Edit the queues</a>
             </div>
           </div>