From 99f38abb4042a9e78d7f12a36faf26b51105397f Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 17 Mar 2017 15:13:00 +0800 Subject: [PATCH] MDL-58298 block_myoverview: Show item count only when applicable Part of MDL-55611 epic. --- .../myoverview/templates/course-event-list-item.mustache | 7 +++++-- blocks/myoverview/templates/event-list-item.mustache | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/blocks/myoverview/templates/course-event-list-item.mustache b/blocks/myoverview/templates/course-event-list-item.mustache index dc6bde495ef..b48f82698d3 100644 --- a/blocks/myoverview/templates/course-event-list-item.mustache +++ b/blocks/myoverview/templates/course-event-list-item.mustache @@ -28,7 +28,8 @@ "action": { "name": "Submit assignment", "url": "https://www.google.com", - "itemcount": 1 + "itemcount": 1, + "showitemcount": true }, "icon": { "key": "icon", @@ -54,7 +55,9 @@ {{#action.actionable}} {{action.name}} {{#action.itemcount}} - {{.}} + {{#action.showitemcount}} + {{.}} + {{/action.showitemcount}} {{/action.itemcount}} {{/action.actionable}} {{^action.actionable}} diff --git a/blocks/myoverview/templates/event-list-item.mustache b/blocks/myoverview/templates/event-list-item.mustache index 271e7b20d0a..ddce069279b 100644 --- a/blocks/myoverview/templates/event-list-item.mustache +++ b/blocks/myoverview/templates/event-list-item.mustache @@ -30,7 +30,8 @@ "action": { "name": "Submit assignment", "url": "https://www.google.com", - "itemcount": 1 + "itemcount": 1, + "showitemcount": true }, "icon": { "key": "icon", @@ -59,7 +60,9 @@ {{#action.actionable}} {{action.name}} {{#action.itemcount}} - {{.}} + {{#action.showitemcount}} + {{.}} + {{/action.showitemcount}} {{/action.itemcount}} {{/action.actionable}} {{^action.actionable}}