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 core_courseformat/local/courseindex/cmcompletion
19
 
20
    Displays a course index course-module entry.
21
 
22
    Example context (json):
23
    {
24
        "state": 1,
25
        "iscomplete": true,
26
        "isincomplete": true,
27
        "isfail": true,
28
        "hasstate": true
29
    }
30
}}
31
{{#iscomplete}}
32
    <span class="completioninfo completion_complete" data-for="cm_completion" data-value="{{state}}">
33
        <svg  xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24">
34
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"/>
35
        </svg>
36
    </span>
37
{{/iscomplete}}
38
{{#isincomplete}}
39
    <span class="completioninfo completion_incomplete" data-for="cm_completion" data-value="{{state}}">
40
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24">
41
        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 12a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z"></path>
42
        </svg>
43
    </span>
44
{{/isincomplete}}
45
{{#isfail}}
46
    <span class="completioninfo completion_fail" data-for="cm_completion" data-value="{{state}}">
47
        <svg width="16" height="16" fill="none" viewBox="0 0 24 24">
48
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 6.75L6.75 17.25"></path>
49
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.75 6.75L17.25 17.25"></path>
50
        </svg>
51
    </span>
52
{{/isfail}}
53
{{^hasstate}}
54
    <span class="completioninfo completion_none" data-for="cm_completion" data-value="{{state}}"></span>
55
{{/hasstate}}