{{! 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 . }} {{! @template core_contentbank/bankcontent Example context (json): { "contents": [ { "name": "Accordion.h5p", "title": "accordion.h5p", "timemodified": 1589792272, "size": "699.3KB", "bytes": 716126, "type": "Archive (H5P)", "link": "http://something/contentbank/contenttype/h5p/view.php?url=http://something/pluginfile.php/1/contentbank/public/accordion.h5p", "icon" : "http://something/theme/image.php/boost/core/1581597850/f/h5p-64" }, { "name": "resume.pdf", "title": "resume", "timemodified": 1589792039, "size": "699.3KB", "bytes": 716126, "type": "Archive (PDF)", "icon": "http://something/theme/image.php/boost/core/1584597850/f/pdf-64" } ], "tools": [ { "name": "Add", "dropdown": true, "link": "http://something/contentbank/edit.php?contextid=1", "contenttypes": [ { "name": "H5P Interactive Content", "baseurl": "http://something/contentbank/edit.php?contextid=1&plugin=h5p", "types": [ { "typename": "H5P Interactive Content" }, { "typename": "Accordion", "typeeditorparams": "library=Accordion-1.4", "typeicon": "http://something/pluginfile.php/1/core_h5p/libraries/13/H5P.Accordion-1.4/icon.svg" } ] } ] }, { "name": "Upload", "link": "http://something/contentbank/contenttype/h5p/view.php?url=http://something/pluginfile.php/1/contentbank/public/accordion.h5p", "icon" : "i/upload" }, { "icon": "i/export" } ] } }}
{{>core_contentbank/bankcontent/search}}
{{>core_contentbank/bankcontent/toolbar}}
{{#pix}} i/folder {{/pix}}
{{#str}} contentname, contentbank {{/str}}
{{#str}} lastmodified, contentbank {{/str}}
{{#str}} size, contentbank {{/str}}
{{#str}} type, contentbank {{/str}}
{{#contents}}
{{#userdate}} {{ timemodified }}, {{#str}} strftimedatetimeshort, core_langconfig {{/str}} {{/userdate}}
{{ size }}
{{{ type }}}
{{/contents}}