AutorÃa | Ultima modificación | Ver Log |
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template tool_courserating/course_ratings_summary
Example context (json):
{
}
}}
<div class="row align-items-center">
<div class="col-4 align-middle text-center">
<div data-purpose="average-rating"
class="course-average-value tool_courserating-ratingcolor">{{ avgrating }}
</div>
<div class=""><span class="">{{#stars}}{{> tool_courserating/stars }}{{/stars}}</span></div>
<p class="course-average-caption tool_courserating-ratingcolor">{{#str}}ratinglabel, tool_courserating{{/str}}</p>
</div>
<div class="col-8 align-middle">
<div class="container">
{{#lines}}
<div class="row align-items-center">
<div class="col-md-7">
<div class="course-rating-bar">
<a href="#" data-for="tool_courserating_setwithrating" data-withrating="{{rating}}"
title='{{#str}}barwithrating, tool_courserating, { "rating": "{{rating}}", "percent": "{{percent}}" } {{/str}}'>
<span class="course-rating-bar-rating tool_courserating-barcolor" style="width: {{percent}} !important"></span>
</a>
</div>
</div>
<div class="col-md-5 px-0"><span
class="star-rating--star-wrapper--1QyBg star-rating--large--25176">{{#star}}{{> tool_courserating/stars }}{{/star}}</span><span
class="course-rating-percent tool_courserating-ratingcolor ml-1"><span>{{{ percent }}}</span></span></div>
</div>
{{/lines}}
</div>
</div>
</div>