{{!
    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/>.
}}
{{!
    List users associated to a scale value in competency template

    Context variables required for this template:
    * scalecompetencyitem
        * name of the scale value
        * color associated to the scale value
        * listusers courses list
            * fullname user full name
            * profileurl user profile url
            * profileimagesmall  user small image url

}}
<div class="lpmonitoringdialogue">
<table class="generaltable fullwidth usersbyscalevalue dataTable" id="list-user-{{competencyid}}-{{scalevalue}}">
    <caption class="cr-caption">
        {{#str}}rating, tool_lp{{/str}} <span class="label cr-scalename truncate" style="background-color: {{scalecompetencyitem.color}}">{{scalecompetencyitem.name}}</span>
    </caption>
    <thead>
        <tr>
            <th scope="col">{{#str}}fullname, core{{/str}}</th>
        </tr>
    </thead>
    <tbody>
        {{#scalecompetencyitem.listusers}}
        <tr>
            <td>
                 <img src="{{{profileimagesmall}}}" alt="{{profileimagesmall}}">
                <a target="_blank" href="{{{profileurl}}}">
                    {{fullname}}
                </a>
            </td>
        </tr>
        {{/scalecompetencyitem.listusers}}
    </tbody>
</table>
</div>
