summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 21:49:56 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 21:49:56 +0200
commitcc285afd5939dbc251ac0f5f64116d0dc17592bb (patch)
tree833f802a2f47f9b8eada6623e967342ad32ea7d7 /client
parentf7446ba9346d52431a9d37c8b4c856daf2c73621 (diff)
downloadwekan-cc285afd5939dbc251ac0f5f64116d0dc17592bb.tar.gz
wekan-cc285afd5939dbc251ac0f5f64116d0dc17592bb.tar.bz2
wekan-cc285afd5939dbc251ac0f5f64116d0dc17592bb.zip
Complete checklist activities
Diffstat (limited to 'client')
-rw-r--r--client/components/activities/activities.jade18
-rw-r--r--client/components/activities/activities.js6
2 files changed, 24 insertions, 0 deletions
diff --git a/client/components/activities/activities.jade b/client/components/activities/activities.jade
index 68d225f3..fae1a51a 100644
--- a/client/components/activities/activities.jade
+++ b/client/components/activities/activities.jade
@@ -34,12 +34,30 @@ template(name="boardActivities")
.activity-checklist(href="{{ card.absoluteUrl }}")
+viewer
= checklist.title
+ if($eq activityType 'removeChecklist')
+ | {{{_ 'activity-checklist-removed' cardLink}}}
+
+ if($eq activityType 'checkedItem')
+ | {{{_ 'activity-checked-item' checkItem checklist.title cardLink}}}
+
+ if($eq activityType 'uncheckedItem')
+ | {{{_ 'activity-unchecked-item' checkItem checklist.title cardLink}}}
+
+ if($eq activityType 'checklistCompleted')
+ | {{{_ 'activity-checklist-completed' checklist.title cardLink}}}
+
+ if($eq activityType 'checklistUncompleted')
+ | {{{_ 'activity-checklist-uncompleted' checklist.title cardLink}}}
+
+
if($eq activityType 'addChecklistItem')
| {{{_ 'activity-checklist-item-added' checklist.title cardLink}}}.
.activity-checklist(href="{{ card.absoluteUrl }}")
+viewer
= checklistItem.title
+ if($eq activityType 'removedChecklistItem')
+ | {{{_ 'activity-checklist-item-removed' checklist.title cardLink}}}
if($eq activityType 'archivedCard')
| {{{_ 'activity-archived' cardLink}}}.
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js
index 93bbb469..11b39126 100644
--- a/client/components/activities/activities.js
+++ b/client/components/activities/activities.js
@@ -41,6 +41,12 @@ BlazeComponent.extendComponent({
this.loadNextPageLocked = true;
}
},
+
+ checkItem(){
+ const checkItemId = this.currentData().checklistItemId;
+ const checkItem = ChecklistItems.findOne({_id:checkItemId});
+ return checkItem.title;
+ },
boardLabel() {
return TAPi18n.__('this-board');