MDL-64905 block_myoverview: Progress bar percentage as placeholder

This commit is contained in:
Alexander Bias
2019-03-04 16:16:11 +01:00
parent 89d1238962
commit c8def6e394
3 changed files with 5 additions and 3 deletions
@@ -48,7 +48,7 @@ $string['aria:sortingdropdown'] = 'Sorting dropdown';
$string['card'] = 'Card';
$string['cards'] = 'Cards';
$string['courseprogress'] = 'Course progress:';
$string['complete'] = 'Complete';
$string['completepercent'] = '{$a}% complete';
$string['favourites'] = 'Starred';
$string['future'] = 'Future';
$string['inprogress'] = 'In progress';
@@ -93,4 +93,5 @@ $string['privacy:metadata:overviewlasttab'] = 'This stores the last tab selected
$string['viewcourse'] = 'View course';
// Deprecated since Moodle 3.7.
$string['complete'] = 'Complete';
$string['nocourses'] = 'No courses';
+2 -1
View File
@@ -13,4 +13,5 @@ sortbydates,block_myoverview
timeline,block_myoverview
viewcoursename,block_myoverview
privacy:metadata:overviewlasttab,block_myoverview
nocourses,block_myoverview
nocourses,block_myoverview
complete,block_myoverview
@@ -30,5 +30,5 @@
</div>
<div class="small">
<span class="sr-only">{{#str}}aria:courseprogress, block_myoverview{{/str}}</span>
<strong>{{progress}}%</strong> {{#str}}complete, block_myoverview{{/str}}
{{#str}}completepercent, block_myoverview, <strong>{{progress}}</strong>{{/str}}
</div>