mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-58298 block_myoverview: Show item count only when applicable
Part of MDL-55611 epic.
This commit is contained in:
parent
8a8bd42528
commit
99f38abb40
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user