{{!
    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 theme_boost_union/course-progress-with-bar

    This template renders the course progress with a simple progress bar.
    This is a modified version of block_myoverview/progress-bar.

    Example context (json):
    {
        "progress": 50
    }
}}
<div class="progress-text w-100">
    <span class="visually-hidden">{{#str}}aria:courseprogress, block_myoverview{{/str}}</span>
    <div class="progress">
        <div class="progress-bar bg-primary" role="progressbar" aria-valuenow="{{progress}}" style="width: {{progress}}%" title= "{{#str}}completepercent, theme_boost_union, {{progress}}{{/str}}" aria-valuemin="0" aria-valuemax="100"></div>
    </div>
    <div class="small mt-1">
        {{#str}}completepercent, block_myoverview, <span>{{progress}}</span>{{/str}}
    </div>
</div>
