summaryrefslogtreecommitdiffstats
path: root/collections/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'collections/cards.js')
-rw-r--r--collections/cards.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/collections/cards.js b/collections/cards.js
index 538b6af4..374dcbc3 100644
--- a/collections/cards.js
+++ b/collections/cards.js
@@ -120,9 +120,15 @@ Cards.helpers({
});
return cardLabels;
},
+ hasLabel: function(labelId) {
+ return _.contains(this.labelIds, labelId);
+ },
user: function() {
return Users.findOne(this.userId);
},
+ isAssigned: function(memberId) {
+ return _.contains(this.members, memberId);
+ },
activities: function() {
return Activities.find({ type: 'card', cardId: this._id },
{ sort: { createdAt: -1 }});