1441 |
ariadna |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template mod_assign/messages/notification_text
|
|
|
19 |
|
|
|
20 |
This template is used for the plain text version of messages sent from the assignment module.
|
|
|
21 |
|
|
|
22 |
Note: much more is passed to this template than might be needed, but this is to give
|
|
|
23 |
flexibility to themes.
|
|
|
24 |
|
|
|
25 |
Classes required for JS:
|
|
|
26 |
* none
|
|
|
27 |
|
|
|
28 |
Context variables required for this template:
|
|
|
29 |
* messagetext - the main content of the message. Normally comes from a lang string.
|
|
|
30 |
* username - full name of the user who performed the action leading to the message, but will be changed to 'Participant 123' if blink marking is in use.
|
|
|
31 |
* recipentname - full name of the user the email is being sent to. (Never anonymised.)
|
|
|
32 |
* assignment - The name of this assignment.
|
|
|
33 |
* url - The URL of this assignment activity.
|
|
|
34 |
* assigncmid - Course-module id of this assignment.
|
|
|
35 |
* courseshortname - short name of the course this assignment is in.
|
|
|
36 |
* coursefullname - full name of the course this assignment is in.
|
|
|
37 |
* courseurl - URL of the course page.
|
|
|
38 |
* courseassignsurl - URL of the paeg listing all assignments in the course.
|
|
|
39 |
* timeupdated - Time the action that triggered this message was performed, formatted for display.
|
|
|
40 |
|
|
|
41 |
Example context (json):
|
|
|
42 |
{
|
|
|
43 |
"messagehtml": "Your assignment for Assignment 1 has been submitted. You can check its status at https://qa.moodledemo.net/mod/assign/view.php?id=5.",
|
|
|
44 |
"username": "Trusty Teacher",
|
|
|
45 |
"recipientname": "Smart Student",
|
|
|
46 |
"assignment": "Assignment 1",
|
|
|
47 |
"url": "https://qa.moodledemo.net/mod/assign/view.php?id=5",
|
|
|
48 |
"assigncmid": 5,
|
|
|
49 |
"courseshortname": "A100",
|
|
|
50 |
"coursefullname": "Assessment for beginners",
|
|
|
51 |
"courseurl": "https://qa.moodledemo.net/course/view.php?id=2",
|
|
|
52 |
"courseassignsurl": "https://qa.moodledemo.net/mod/assign/index.php?id=2",
|
|
|
53 |
"timeupdated": "Fri, 14 Mar 2025, 11:08 PM"
|
|
|
54 |
}
|
|
|
55 |
}}
|
|
|
56 |
{{{courseshortname}}} -> {{#str}}modulename, mod_assign{{/str}} -> {{{assignment}}}
|
|
|
57 |
---------------------------------------------------------------------
|
|
|
58 |
{{{messagetext}}}
|
|
|
59 |
|
|
|
60 |
---------------------------------------------------------------------
|