MDL-52563 mod_forum: Cleanup digestbasic template
[moodle.git] / mod / forum / templates / forum_post_emaildigestbasic_htmlemail.mustache
CommitLineData
31793839
AN
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_forum/forum_post_emaildigestbasic_htmlemail
19
20 Template which defines a forum post for sending in a single-post HTML email.
21
22 Classes required for JS:
23 * none
24
25 Data attributes required for JS:
26 * none
27
28 Context variables required for this template:
29 * permalink
30 * subject
31 * authorlink
32 * authorfullname
33 * postdate
34
35 Example context (json):
36 {
37 "permalink": "https://example.com/mod/forum/discuss.php?d=2#2",
38 "subject": "Is Lorem ipsum Latin?",
39 "authorlink": "https://example.com/user/view.php?id=2&course=2",
40 "authorfullname": "Lucius Caecilius lucundus",
41 "postdate": "Sunday, 13 September 2015, 2:22 pm"
42 }
43}}
44<div>
593aaa53 45 <a target="_blank" href="{{{ permalink }}}">{{{ subject }}}</a>
31793839
AN
46 {{# str }} bynameondate, forum, {
47 "name": "<a target=\"_blank\" href=\"{{{ authorlink }}}\">{{ authorfullname }}</a>",
48 "date": "{{ postdate }}"
49 } {{/ str }}
be28a782 50</div>