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 enrol_coursecompleted/learnpath
19
 
20
    Example context (json):
21
    {
22
        "coursetitle": "Course 1",
23
        "courseurl": "http:/example.com",
24
        "hasdata": true,
25
        "items": [
26
            {
27
                "first": true,
28
                "title": "Course title",
29
                "href": "http://example.com/",
30
                "seqnumber": "3",
31
                "course": false
32
            },
33
            {
34
                "first": true,
35
                "title": "Course title",
36
                "href": "http://example.com/",
37
                "seqnumber": "3",
38
                "course": false
39
            }
40
        ]
41
    }
42
}}
43
<div>
44
    <p>
45
    {{#str}} willbeenrolled, enrol_coursecompleted, <a href="{{courseurl}}" title="{{coursetitle}}">{{coursetitle}}</a>{{/str}}
46
    {{#hasdata}}
47
        <span class="float-right">
48
        {{#items}}
49
            {{^first}}
50
            <span class="fa-stack fa-2x">
51
                <span class="fa fa-arrow-right fa-stack-1x text-dark"></span>
52
            </span>
53
            {{/first}}
54
            <span class="fa-stack fa-2x">
55
                {{#course}}
56
                    <span class="fa fa-circle fa-stack-2x text-dark"></span>
57
                    <strong class="fa-stack-1x text-light">{{seqnumber}}</strong>
58
                {{/course}}
59
                {{^course}}
60
                    <a href="{{href}}" title="{{{title}}}">
61
                        <span class="fa fa-circle-o fa-stack-2x"></span>
62
                        <strong class="fa-stack-1x">{{seqnumber}}</strong>
63
                    </a>
64
                {{/course}}
65
            </span>
66
        {{/items}}
67
        </span>
68
    {{/hasdata}}
69
    </p>
70
</div>