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 theme_universe/progress-chart from block_myoverview in M3.5.
19
 
20
    This template renders a doughnut chart to show course progress.
21
 
22
    Example context (json):
23
    {
24
        "progress": "60"
25
    }
26
}}
27
<div class="course-progressbar-wrapper">
28
 
29
    <div class="d-inline-flex align-items-center justify-content-between w-100">
30
        <span class="rui-progress-count--text">{{#str}} completed, completion {{/str}} {{progress}}%</span>
31
        <div class="rui-progress-count rui-progress-count--text">
32
            <span class="rui-progress-count-completed">{{progresscountc}}</span>
33
            <span class="rui-progress-count-total"> / {{progresscounttotal}}</span>
34
        </div>
35
    </div>
36
 
37
    <div class="w-100">
38
        <div class="progressbar-container w-100">
39
            <span id="{{id}}_status"></span>
40
            <div class="rui-progress rui-progress--value-{{progress}}">
41
                <div id="{{id}}_bar" class="rui-progress-bar" role="progressbar" aria-valuenow="{{progress}}" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;" title="{{progress}}%" data-toggle="tooltip"></div>
42
            </div>
43
        </div>
44
    </div>
45
</div>