{{!
    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/>.
}}
{{!
  Studentstracker block.
  @package    block
  @subpackage studentstracker
  @copyright  &copy; 2021 Pierre Duverneix.
  @author     Pierre Duverneix
  @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

  Example context (json):
  {
  }
}}
<div class="studentstracker_header">
    {{# usercount }}<span class="badge badge-warning pl-2">{{{ usercount }}}</span>{{/ usercount }}{{{ textheader }}}
</div>

{{> block_studentstracker/students_list }}

<div class="text-center">
    <div id="tracker_showmore" class="justify-content-center"></div>
    <div id="tracker_showless" class="justify-content-center"></div>
</div>

<div class="studentstracker_footer d-flex">{{{ textfooter }}}</div>

{{#js}}
require(['jquery', 'block_studentstracker/index'], function($, st) {
    $(document).ready(function() {
        st.init();
        $('#studentstracker-list, #tracker_showmore').fadeIn();
        $('#studentstracker-list, #tracker_showmore').css({display: 'block'});
    });
});
{{/js}}