2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_user/upcoming_activities_due_insight_body
20 Template for the upcoming activity due insight
22 Context variables required for this template:
23 * activitiesdue array - Data for each activity due.
24 * userfirstname string - The user firstname.
26 Example context (json):
28 "userfirstname": "John",
31 "name": "Introduction to ASP is due",
32 "formattedtime": "31 January 2018",
33 "coursename": "Programming I",
34 "url": "https://www.google.com"
40 {{! The styles defined here will be included in the Moodle web UI and in emails. Emails do not include Moodle
41 stylesheets so we want these styles to be applied to emails. However, they will also be included in the Moodle web UI.
42 The styles defined in the class .table have precedence over general styles at tag level, so these styles are only
51 background-color: #e9ecef;
54 padding: 1rem .75rem 1rem .75rem;
57 border-top: 1px solid #dee2e6;
63 border-top: 1px solid #dee2e6;
64 border-bottom: 1px solid #dee2e6;
69 {{#str}} youhaveupcomingactivitiesdueinfo, moodle, {{userfirstname}} {{/str}}
73 <table class="table upcoming-activity-due">
76 <th scope="col" class="h5">
78 {{#pix}} {{key}}, {{component}}, {{title}} {{alttext}} {{/pix}}
86 <td><strong>{{#str}} whendate, calendar, {{formattedtime}} {{/str}}</strong></td>
89 <td>{{#str}} coursetitle, moodle, {"course": "{{coursename}}" } {{/str}}</td>
92 <td class="link"><a href="{{url}}">{{#str}} gotoactivity, calendar{{/str}}</a></td>