diff --git a/blocks/myoverview/templates/course-summary.mustache b/blocks/myoverview/templates/course-summary.mustache index 2459d11f12f..6dabb7c6550 100644 --- a/blocks/myoverview/templates/course-summary.mustache +++ b/blocks/myoverview/templates/course-summary.mustache @@ -29,15 +29,15 @@ } }}
-
+
{{> block_myoverview/progress-chart}}

{{fullnamedisplay}}

-
+
{{> block_myoverview/progress-chart}}

{{fullnamedisplay}}

-
+
diff --git a/blocks/myoverview/templates/courses-view-course-item.mustache b/blocks/myoverview/templates/courses-view-course-item.mustache index 7c5ff2006c5..c625cd14a07 100644 --- a/blocks/myoverview/templates/courses-view-course-item.mustache +++ b/blocks/myoverview/templates/courses-view-course-item.mustache @@ -31,11 +31,11 @@
-
+
{{> block_myoverview/progress-chart}}

{{fullnamedisplay}}

-
+
diff --git a/blocks/myoverview/templates/paging-bar-item.mustache b/blocks/myoverview/templates/paging-bar-item.mustache index 2ed48b5aae4..d4eeb89f610 100644 --- a/blocks/myoverview/templates/paging-bar-item.mustache +++ b/blocks/myoverview/templates/paging-bar-item.mustache @@ -32,9 +32,6 @@ data-region="page-link"> {{$item-content}} {{{page}}} - {{#active}} - {{#str}}currentinparentheses, theme_boost{{/str}} - {{/active}} {{/item-content}} diff --git a/blocks/myoverview/templates/paging-content-item.mustache b/blocks/myoverview/templates/paging-content-item.mustache index 31616002719..8897126316e 100644 --- a/blocks/myoverview/templates/paging-content-item.mustache +++ b/blocks/myoverview/templates/paging-content-item.mustache @@ -25,7 +25,7 @@ }}
+ class="{{#active}}active{{/active}}{{^active}}hidden{{/active}}"> {{$content}} {{{content}}} {{/content}} diff --git a/theme/bootstrapbase/templates/block_myoverview/main.mustache b/theme/bootstrapbase/templates/block_myoverview/main.mustache index a393c8eba78..650eb9bc060 100644 --- a/theme/bootstrapbase/templates/block_myoverview/main.mustache +++ b/theme/bootstrapbase/templates/block_myoverview/main.mustache @@ -23,28 +23,28 @@ {} }} -
- +
+
{{> block_myoverview/timeline-view }}
- {{> block_myoverview/courses-view }} + {{#coursesview}} + {{> block_myoverview/courses-view }} + {{/coursesview}}
diff --git a/theme/bootstrapbase/templates/block_myoverview/paging-bar.mustache b/theme/bootstrapbase/templates/block_myoverview/paging-bar.mustache new file mode 100644 index 00000000000..e023dd13a21 --- /dev/null +++ b/theme/bootstrapbase/templates/block_myoverview/paging-bar.mustache @@ -0,0 +1,71 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + @template block_myoverview/paging-bar + + This template renders the each course block containing a summary and calendar events. + + Example context (json): + { + } +}} +{{#pagingbar}} + +{{#js}} +require(['jquery', 'block_myoverview/paging_bar'], function($, PagingBar) { + var root = $('#{{$pagingbarid}}paging-bar-{{uniqid}}{{/pagingbarid}}'); + PagingBar.registerEventListeners(root); +}); +{{/js}} +{{/pagingbar}}