1 |
efrain |
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 block_timeline/main
|
|
|
19 |
|
|
|
20 |
This template renders the main content area for the timeline block.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{}
|
|
|
24 |
}}
|
|
|
25 |
|
|
|
26 |
<div id="block-timeline-{{uniqid}}" class="block-timeline" data-region="timeline">
|
|
|
27 |
<div class="px-0 pb-3">
|
|
|
28 |
<div class="row no-gutters">
|
|
|
29 |
<div class="col-sm d-flex justify-content-start">
|
|
|
30 |
{{> block_timeline/nav-day-filter }}
|
|
|
31 |
</div>
|
|
|
32 |
<div class="col-sm d-flex justify-content-end">
|
|
|
33 |
{{> block_timeline/nav-view-selector }}
|
|
|
34 |
</div>
|
|
|
35 |
<div class="col-12 mt-2 mb-1 d-flex justify-content-end nav-search">
|
|
|
36 |
{{> block_timeline/nav-search }}
|
|
|
37 |
</div>
|
|
|
38 |
</div>
|
|
|
39 |
</div>
|
|
|
40 |
<div class="w-100 p-0">
|
|
|
41 |
{{> block_timeline/view }}
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
{{#js}}
|
|
|
45 |
require(
|
|
|
46 |
[
|
|
|
47 |
'jquery',
|
|
|
48 |
'block_timeline/main',
|
|
|
49 |
],
|
|
|
50 |
function(
|
|
|
51 |
$,
|
|
|
52 |
Main
|
|
|
53 |
) {
|
|
|
54 |
var root = $('#block-timeline-{{uniqid}}');
|
|
|
55 |
Main.init(root);
|
|
|
56 |
});
|
|
|
57 |
{{/js}}
|