{{!
    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 local_edwisersiteimporter/homepage

    Homepage template.

    Context variables required for this template:
    * siteurl - Site base url
    * image - Screenshot image
    * name - Template name

    Example context (json):
    {
        "siteurl" : "http://edwiser-demo-url.org",
        "image" : "http://edwiser-demo.org/screenshot.jpg",
        "name" : "Edwiser Demo"
    }
}}
{{#supported}}
    <div class="homepage-templates templates">
    {{#templates}}
    <div class="template">
        <div class="template-wrapper">
            <div class="template-overlay">
                <button class="btn btn-primary view-template"
                    data-type="homepage"
                    data-site="{{siteurl}}"
                    data-image="{{image}}"
                    data-name="{{name}}">
                    {{#str}} viewtemplate, local_edwisersiteimporter {{/str}}
                </button>
            </div>
            <img src="{{image}}" referrerpolicy="no-referrer"/>
        </div>
        <div class="template-foooter text-center p-2">
            <h5 class="m-0">{{name}}</h5>
        </div>
    </div>
    {{/templates}}
    </div>
{{/supported}}
{{^supported}}
    {{{message}}}
{{/supported}}
