57 | {{/summaryguest}}
58 | {{> mod_etherpadlite/iframe}}
59 | {{> mod_etherpadlite/modal}}
60 | {{#js}}
61 | require(['mod_etherpadlite/modal_iframe'], function(mod) {
62 | mod.init("{{frameurl}}", {{{id}}});
63 | });
64 | {{/js}}
65 |
--------------------------------------------------------------------------------
/templates/iframe.mustache:
--------------------------------------------------------------------------------
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 .
16 | }}
17 | {{!
18 | @template mod_etherpadlite/iframe
19 |
20 | Displays etherpad iframe on boost based themes
21 |
22 | Example context (json):
23 | {
24 | "id" : 1,
25 | "minwidth" : "400px",
26 | "emptyurl" : "https://example.com"
27 | }
28 |
29 | }}
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/templates/instance_link.mustache:
--------------------------------------------------------------------------------
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 .
16 | }}
17 | {{!
18 | @template mod_etherpadlite/instance_link
19 |
20 | Displays etherpad content
21 |
22 | Example context (json):
23 | {
24 | "class" : "dimmed",
25 | "url" : "https://example.com/mod/etherpadlite/view.php?id=2",
26 | "text" : "Etherpadinstance"
27 | }
28 |
29 | }}
30 |
31 | {{text}}
32 |
--------------------------------------------------------------------------------
/templates/modal.mustache:
--------------------------------------------------------------------------------
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 .
16 | }}
17 | {{!
18 | @template mod_etherpadlite/modal
19 |
20 | Displays the modal dialog with the etherpad iframe
21 |
22 | Example context (json):
23 | {
24 | "id" : 1,
25 | "name" : "Test pad",
26 | "courseurl" : "https://example.com/course/view.php?id=2"
27 | }
28 |
29 | }}
30 |
31 |
54 |
--------------------------------------------------------------------------------
/templates/urlsettingsnote.mustache:
--------------------------------------------------------------------------------
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 .
16 | }}
17 | {{!
18 | @template mod_etherpadlite/urlsettingsnote
19 |
20 | Displays etherpad content
21 |
22 | Example context (json):
23 | {
24 | "msg" : "Description of something",
25 | "msginfo" : "Additional info",
26 | "msgtype" : "warning",
27 | "icon" : "exclamation-triangle"
28 | }
29 |
30 | }}
31 |
32 |