{{!
    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/settings-additionalresources-filelist

    Boost Union settingsfilelist layout template.

    Context variables required for this template:
    * files - Array of files

    Example context (json):
    {
        "files": [
            {
                "fileicon": "<img class='icon ' alt='Image (PNG)' title='Image (PNG)' src='/theme/image.php/boost_union/core/1666077095/f/png-64'>",
                "filename": "foo.png",
                "filetype": "image/png",
                "filesize": "38.5 KB",
                "fileurlpersistent": "http://localhost/pluginfile.php/1/theme_boost_union/additionalresources/0/foo.png",
                "fileurlrevisioned": "http://localhost/pluginfile.php/1/theme_boost_union/additionalresources/1666077095/foo.png"
            }
        ]
    }
}}

<ul class="list-group my-3 settings-additionalresources-filelist">
    {{#files}}
        <li class="list-group-item d-flex justify-content-between">
            <div class="d-flex flex-row">
                {{{fileicon}}}
                <div class="ms-2">
                    <h6 class="mb-0">{{filename}}</h6>
                    <small>{{#str}}mimetype, tool_filetypes{{/str}}: {{filetype}}</small><br>
                    <small>{{#str}}size, repository{{/str}}: {{filesize}}</small><br>
                    <small>{{#str}}additionalresourcesfileurlpersistent, theme_boost_union{{/str}}: <a href="{{fileurlpersistent}}">{{fileurlpersistent}}</a></small><br>
                    <small>{{#str}}additionalresourcesfileurlrevisioned, theme_boost_union{{/str}}: <a href="{{fileurlrevisioned}}">{{fileurlrevisioned}}</a></small>
                </div>
            </div>
        </li>
    {{/files}}
</ul>
