{{! 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 core_user/upcoming_activities_due_insight_body Template for the upcoming activity due insight Context variables required for this template: * activitiesdue array - Data for each activity due. * userfirstname string - The user firstname. Example context (json): { "userfirstname": "John", "activitiesdue": [ { "name": "Introduction to ASP is due", "formattedtime": "31 January 2018", "coursename": "Programming I", "url": "https://www.google.com" } ] } }} {{! The styles defined here will be included in the Moodle web UI and in emails. Emails do not include Moodle stylesheets so we want these styles to be applied to emails. However, they will also be included in the Moodle web UI. The styles defined in the class .table have precedence over general styles at tag level, so these styles are only applied to emails.}}
{{#str}} youhaveupcomingactivitiesdueinfo, moodle, {{userfirstname}} {{/str}}

{{#activitiesdue}}
{{#icon}} {{#pix}} {{key}}, {{component}}, {{title}} {{alttext}} {{/pix}} {{/icon}} {{name}}
{{#str}} whendate, calendar, {{formattedtime}} {{/str}}
{{#str}} coursetitle, moodle, {"course": "{{coursename}}" } {{/str}}
{{/activitiesdue}}