MDL-58298 block_myoverview: Show item count only when applicable

Part of MDL-55611 epic.
This commit is contained in:
Jun Pataleta 2017-03-17 15:13:00 +08:00 committed by Damyon Wiese
parent 8a8bd42528
commit 99f38abb40
2 changed files with 10 additions and 4 deletions

View File

@ -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}}
<a href="{{{action.url}}}">{{action.name}}</a>
{{#action.itemcount}}
<span class="tag tag-pill tag-default">{{.}}</span>
{{#action.showitemcount}}
<span class="tag tag-pill tag-default">{{.}}</span>
{{/action.showitemcount}}
{{/action.itemcount}}
{{/action.actionable}}
{{^action.actionable}}

View File

@ -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}}
<a href="{{{action.url}}}">{{action.name}}</a>
{{#action.itemcount}}
<span class="tag tag-pill tag-default">{{.}}</span>
{{#action.showitemcount}}
<span class="tag tag-pill tag-default">{{.}}</span>
{{/action.showitemcount}}
{{/action.itemcount}}
{{/action.actionable}}
{{^action.actionable}}