Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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}}-{{timelineinstanceid}}" class="block-timeline" data-region="timeline">
27
    <div class="p-0 px-2">
28
        <div class="row no-gutters">
29
            <div class="mr-2 mb-1">
30
                {{> block_timeline/nav-day-filter }}
31
            </div>
32
            <div class="mr-auto mb-1">
33
                {{> block_timeline/nav-view-selector }}
34
            </div>
35
            <div class="col-md-6 col-sm-8 col-12 mb-1 d-flex justify-content-end nav-search">
36
                {{> block_timeline/nav-search }}
37
            </div>
38
        </div>
39
        <div class="pb-3 px-2 border-bottom"></div>
40
    </div>
41
    <div class="p-0">
42
        {{> block_timeline/view }}
43
    </div>
44
</div>
45
{{#js}}
46
require(
47
[
48
    'jquery',
49
    'block_timeline/main',
50
],
51
function(
52
    $,
53
    Main
54
) {
55
    var root = $('#block-timeline-{{uniqid}}-{{timelineinstanceid}}');
56
    Main.init(root);
57
});
58
{{/js}}