{{!
    This file is part of Moodle - https://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 format_ludilearn/filename

    Example context (json):
    {}
}}

<div id="ludilearn-badge-cm" class="cm-badge {{#cm.parameters.restricted }}restricted{{/cm.parameters.restricted }}">
    <div class="row">
{{#parameters.gamified }}
        <div class="col-12">
            {{#parameters.completion}}
                <div data-for="ludilearn-cm-completion" class="badgecompletion badgecompletion-cm">
                    <img class="ludilearn-img img-responsive d-block mx-auto"
                         src="{{config.wwwroot}}/course/format/ludilearn/pix/{{ world }}/badge/badge_completion.svg"
                         alt="Image badge">
                </div>
            {{/parameters.completion}}
            <img data-for="ludilearn-cm-badge" class="ludilearn-img img-responsive d-block mx-auto"
                 src="{{config.wwwroot}}/course/format/ludilearn/pix/{{ world }}/badge/badge_{{ parameters.badge }}.svg"
                 alt="Image badge">
        </div>
    </div>
{{/parameters.gamified }}
{{^parameters.gamified }}
    <img class="ludilearn-img img-responsive d-block mx-auto" src="{{config.wwwroot}}/course/format/ludilearn/pix/{{ world }}/none.svg" alt="Image no score">
{{/parameters.gamified}}
</div>
{{> format_ludilearn/components/cm }}