diff options
Diffstat (limited to 'collections/boards.js')
-rw-r--r-- | collections/boards.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/collections/boards.js b/collections/boards.js index 8260fc3d..ddfa5016 100644 --- a/collections/boards.js +++ b/collections/boards.js @@ -123,16 +123,24 @@ Boards.helpers({ isPublic() { return this.permission === 'public'; }, + lists() { return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 }}); }, + activities() { return Activities.find({ boardId: this._id }, { sort: { createdAt: -1 }}); }, + + activeMembers() { + return _.where(this.members, {isActive: true}); + }, + absoluteUrl() { return FlowRouter.path('board', { id: this._id, slug: this.slug }); }, + colorClass() { return `board-color-${this.color}`; }, |