{{!
    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 aiprovider_datacurso/plugin_list_page

    TODO describe template plugins_list

    Example context (json):
    {
    }
}}

<p>{{#str}}descriptionpagelistplugins, aiprovider_datacurso{{/str}}</p>

<table class="generaltable">
    <thead>
        <tr>
            <th>{{#str}}plugin, aiprovider_datacurso{{/str}}</th>
            <th>{{#str}}description, aiprovider_datacurso{{/str}}</th>
            <th>{{#str}}installed, aiprovider_datacurso{{/str}}</th>
            <th>{{#str}}link_plugin, aiprovider_datacurso{{/str}}</th>
        </tr>
    </thead>
    <tbody>
        {{#plugins}}
        <tr>
            <td>{{name}}</td>
            <td>{{description}}</td>
            <td>{{#installed}}{{#str}}yes, core{{/str}}{{/installed}}{{^installed}}{{#str}}no, core{{/str}}{{/installed}}</td>
            <td><a href="{{url}}" target="_blank">{{url}}</a></td>
        </tr>
        {{/plugins}}

        {{^plugins}}
        <tr>
            <td colspan="4">{{#str}}message_no_there_plugins, aiprovider_datacurso{{/str}}</td>
        </tr>
        {{/plugins}}
    </tbody>
</table>
