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_accessreview/status
19
 
20
    Accessibility review result information.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Context variables required for this template:
29
    * classList - array of block_accessreview classes
30
    * resultPassed - boolean indicating that the item is correct
31
    * passRate - object containing metrics
32
      * errorCount - the number of failures
33
      * checkCount - the number of items checked
34
      * failureRate - the percentage of items failing
35
 
36
    Example context (json):
37
    {
38
        "classList": "block_accessreview_danger",
39
        "passRate": {
40
            "checkCount": "60",
41
            "errorCount": "12",
42
            "failureRate": "20"
43
        }
44
    }
45
}}
46
<div class="block_accessreview block_accessreview_view {{classList}}">
47
    {{#resultPassed}}
48
        {{#pix}}t/pass, block_accessreview, {{#str}}status:successalt, block_accessreview{{/str}}{{/pix}}
49
        {{#str}}status:success, block_accessreview, {
50
            "errorCount": {{passRate.errorCount}},
51
            "checkCount": {{passRate.checkCount}},
52
            "failureRate": {{passRate.failureRate}}
53
        }{{/str}}
54
    {{/resultPassed}}
55
    {{^resultPassed}}
56
        {{#pix}}t/fail, block_accessreview, {{#str}}status:errorsalt, block_accessreview{{/str}}{{/pix}}
57
        {{#str}}status:errors, block_accessreview, {
58
            "errorCount": {{passRate.errorCount}},
59
            "checkCount": {{passRate.checkCount}},
60
            "failureRate": {{passRate.failureRate}}
61
        }{{/str}}
62
    {{/resultPassed}}
63
</div>