posts_list.js 323 B

123456789101112131415161718
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 30/08/15
  7. * Time: 10:07
  8. */
  9. Template.postsList.helpers({
  10. posts: function () {
  11. return Posts.find({}, { sort: { submitted: -1 }});
  12. },
  13. lastPush: function () {
  14. var latest = PushFeed.find({}).count();//, { sort: { timestamp: -1}, limit: 1});
  15. return latest;
  16. }
  17. });