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 tool_courserating/course_ratings_summary
19
 
20
    Example context (json):
21
    {
22
    }
23
 
24
}}
25
<div class="row align-items-center">
26
    <div class="col-4 align-middle text-center">
27
        <div data-purpose="average-rating"
28
             class="course-average-value tool_courserating-ratingcolor">{{ avgrating }}
29
        </div>
30
        <div class=""><span class="">{{#stars}}{{> tool_courserating/stars }}{{/stars}}</span></div>
31
        <p class="course-average-caption tool_courserating-ratingcolor">{{#str}}ratinglabel, tool_courserating{{/str}}</p>
32
    </div>
33
    <div class="col-8 align-middle">
34
        <div class="container">
35
            {{#lines}}
36
                <div class="row align-items-center">
37
                    <div class="col-md-7">
38
                        <div class="course-rating-bar">
39
                            <a href="#" data-for="tool_courserating_setwithrating" data-withrating="{{rating}}"
40
                                    title='{{#str}}barwithrating, tool_courserating, { "rating": "{{rating}}", "percent": "{{percent}}" } {{/str}}'>
41
                                <span class="course-rating-bar-rating tool_courserating-barcolor" style="width: {{percent}} !important"></span>
42
                            </a>
43
                        </div>
44
                    </div>
45
                    <div class="col-md-5 px-0"><span
46
                            class="star-rating--star-wrapper--1QyBg star-rating--large--25176">{{#star}}{{> tool_courserating/stars }}{{/star}}</span><span
47
                            class="course-rating-percent tool_courserating-ratingcolor ml-1"><span>{{{ percent }}}</span></span></div>
48
                </div>
49
            {{/lines}}
50
        </div>
51
    </div>
52
</div>