2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_contentbank/bankcontent/toolbar
20 Example context (json):
25 "link": "http://something/contentbank/contenttype/h5p/view.php?url=http://something/pluginfile.php/1/contentbank/public/accordion.h5p",
37 <a href="{{{ link }}}" class="icon-no-margin btn btn-secondary" title="{{{ name }}}">
38 {{#pix}} {{{ icon }}} {{/pix}} {{{ name }}}
41 <button class="icon-no-margin btn btn-secondary {{^viewlist}}active{{/viewlist}} ml-2"
42 title="{{#str}} displayicons, contentbank {{/str}}"
43 data-action="viewgrid">
44 {{#pix}}a/view_icon_active, core, {{#str}} displayicons, contentbank {{/str}} {{/pix}}
46 <button class="icon-no-margin btn btn-secondary {{#viewlist}}active{{/viewlist}}"
47 title="{{#str}} displaydetails, contentbank {{/str}}"
48 data-action="viewlist">
49 {{#pix}}t/viewdetails, core, {{#str}} displaydetails, contentbank {{/str}} {{/pix}}