{{!
    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 comments.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template block_ned_teacher_tools/deadline_manager_user_extension_button
}}
{{#showextensionicon}}
<a href="#"
   class='extensions
       {{#numberofextensions}}numberofextensions{{/numberofextensions}}
       {{^numberofextensions}}{{#can_add_extension}}new_extension{{/can_add_extension}}{{/numberofextensions}}
       {{#can_add_extension}}add_extension{{/can_add_extension}}'
   data-action="userextensionmodal"
   data-userid="{{userid}}"
   data-cmid="{{cmid}}"
>
    {{#numberofextensions}}{{numberofextensions}}{{/numberofextensions}}
    {{#can_add_extension}}
        <span class='fa fa-plus-circle' title="{{#str}}addnewextension, block_ned_teacher_tools{{/str}}"></span>
    {{/can_add_extension}}
</a>
{{/showextensionicon}}