weekly release 3.9dev
[moodle.git] / h5p / templates / h5plibraries.mustache
CommitLineData
c43f99ca
BB
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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/>.
16}}
17{{!
18 @template core_h5p/h5plibraries
19
20 Example context (json):
21 {
22 "contenttypes": [
23 {
24 "title": "Accordion",
25 "major_version": 1,
26 "minor_version:": 0,
27 "patch_version:": 0,
28 "runnable": 1
29 },
30 {
31 "title": "Collage",
32 "major_version": 0,
33 "minor_version:": 3,
34 "patch_version:": 1,
35 "runnable": 1
36 },
37 {
38 "title": "FontAwesome",
39 "major_version": 4,
40 "minor_version:": 5,
41 "patch_version:": 0,
42 "runnable": 0
43 }
44 ]
45 }
46
47}}
48<h3 class="mt-3">{{#str}} installedh5p, h5p {{/str}}</h3>
49
50<ul class="nav nav-tabs mb-3" id="myTab" role="tablist">
51 <li class="nav-item">
52 <a class="nav-link active" id="contenttypes-tab" data-toggle="tab" href="#contenttypes" role="tab" aria-controls="contenttypes" aria-selected="true">
53 {{#str}} installedcontenttypes, h5p {{/str}}
54 </a>
55 </li>
56 <li class="nav-item">
57 <a class="nav-link" id="libraries-tab" data-toggle="tab" href="#libraries" role="tab" aria-controls="libraries" aria-selected="false">
58 {{#str}} installedcontentlibraries, h5p {{/str}}
59 </a>
60 </li>
61</ul>
62<div class="tab-content" id="myTabContent">
63 <div class="tab-pane fade show active" id="contenttypes" role="tabpanel" aria-labelledby="contenttypes-tab">
64 <div class="overview px-3 mb-5">
65 <table class="admintable generaltable" id="h5pcontenttypes">
66 <thead>
67 <tr>
68 <th>{{#str}}description, core{{/str}}</th>
69 <th>{{#str}}version, core{{/str}}</th>
70 </tr>
71 </thead>
72 <tbody>
73 {{#contenttypes}}
74 {{#runnable}}
75 <tr class="">
76 <td>
77 {{{ title }}}
78 </td>
79 <td>{{{ major_version }}}.{{{ minor_version }}}.{{{ patch_version }}}</td>
80 </tr>
81 {{/runnable}}
82 {{/contenttypes}}
83 </tbody>
84 </table>
85 </div>
86 </div>
87 <div class="tab-pane fade" id="libraries" role="tabpanel" aria-labelledby="libraries-tab">
88 <div class="overview px-3 mb-5">
2c679b6e 89 <table class="admintable generaltable" id="h5plibraries">
c43f99ca
BB
90 <thead>
91 <tr>
92 <th>{{#str}}description, core{{/str}}</th>
93 <th>{{#str}}version, core{{/str}}</th>
94 </tr>
95 </thead>
96 <tbody>
97 {{#contenttypes}}
98 {{^runnable}}
99 <tr class="">
100 <td>
101 {{{ title }}}
102 </td>
103 <td>{{{ major_version }}}.{{{ minor_version }}}.{{{ patch_version }}}</td>
104 </tr>
105 {{/runnable}}
106 {{/contenttypes}}
107 </tbody>
108 </table>
109 </div>
110 </div>
111</div>