diff --git a/blocks/myoverview/templates/courses-view.mustache b/blocks/myoverview/templates/courses-view.mustache index 38346598a45..5a5f69c0fa7 100644 --- a/blocks/myoverview/templates/courses-view.mustache +++ b/blocks/myoverview/templates/courses-view.mustache @@ -23,7 +23,7 @@ {} }}
-
+
diff --git a/blocks/myoverview/templates/timeline-view-dates.mustache b/blocks/myoverview/templates/timeline-view-dates.mustache index ca0e158197c..adf82dc593c 100644 --- a/blocks/myoverview/templates/timeline-view-dates.mustache +++ b/blocks/myoverview/templates/timeline-view-dates.mustache @@ -42,7 +42,7 @@ {{$title}}{{#str}} next30days, block_myoverview {{/str}}{{/title}} {{/ block_myoverview/event-list }}
-
+
diff --git a/blocks/myoverview/templates/timeline-view.mustache b/blocks/myoverview/templates/timeline-view.mustache index fd28fecbf89..9ed2eb8fd4c 100644 --- a/blocks/myoverview/templates/timeline-view.mustache +++ b/blocks/myoverview/templates/timeline-view.mustache @@ -23,7 +23,7 @@ {} }}
-
+
{{#str}} sortbydates, block_myoverview {{/str}} diff --git a/theme/bootstrapbase/templates/block_myoverview/event-list-item.mustache b/theme/bootstrapbase/templates/block_myoverview/event-list-item.mustache new file mode 100644 index 00000000000..6a8d3aee94b --- /dev/null +++ b/theme/bootstrapbase/templates/block_myoverview/event-list-item.mustache @@ -0,0 +1,64 @@ +{{! + 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/event-list-item + + This template renders an event list item for the myoverview block. + + Example context (json): + { + "actionname": "Submit assignment", + "actionurl": "https://www.google.com", + "enddate": "Nov 4th, 10am", + "contextname": "Assignment due 1", + "contexturl": "https://www.google.com", + "coursename": "Course 1", + "itemcount": 1, + "icon": { + "key": "icon", + "component": "mod_assign", + "alttext": "Assignment icon" + } + } +}} +
  • +
    +
    + {{#itemcount}} +
    + {{.}} +
    + {{/itemcount}} +
    +
    {{enddate}}
    +
    + {{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}} +
    +
    +
    + +
    + {{coursename}} +
    +
    +
    +
    {{enddate}}
    +
    +
    +
  • diff --git a/theme/bootstrapbase/templates/block_myoverview/main.mustache b/theme/bootstrapbase/templates/block_myoverview/main.mustache new file mode 100644 index 00000000000..a393c8eba78 --- /dev/null +++ b/theme/bootstrapbase/templates/block_myoverview/main.mustache @@ -0,0 +1,50 @@ +{{! + 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/main + + This template renders the main content area for the myoverview block. + + Example context (json): + {} +}} + +
    + + +
    +
    + {{> block_myoverview/timeline-view }} +
    +
    + {{> block_myoverview/courses-view }} +
    +
    +