MDL-70288 qtype: Remove unnecessary empty label string
[moodle.git] / h5p / templates / h5perror.mustache
blobd4559854e2a228bbc73f3d3c841db2b13b5cf1d8
1 {{!
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/>.
17 {{!
18     @template core_h5p/h5perror
20     This template will render the embed code shown in the H5P content embed popup.
22     Variables required for this template:
23     * h5picon - The icon
24     * message - The error messages to display.
26     Example context (json):
27     {
28         "embedurl": "http://example.com/h5p/embed.php?url=testurl"
29     }
33 <div class="d-flex h-100 position-relative align-items-center bg-light h5pmessages">
34    <div class="position-absolute py-2 bg-secondary" style="top: 0px; left: 0px; right: 0px;">
35       <div class="container">
36         {{#h5picon}}
37          <img src="{{{.}}}" class="h5picon" alt="{{#str}}h5p, core_h5p{{/str}}" style="width: 50px; height: auto; opacity: 0.5">
38         {{/h5picon}}
39       </div>
40    </div>
41    <div class="container mt-5">
42       {{#exception}}
43       <div class="alert alert-block fade in alert-danger my-2" role="alert">
44          {{{ exception }}}
45       </div>
46       {{/exception}}
47       {{#info}}
48       <div class="alert alert-block fade in alert-info my-2" role="alert">
49          {{{ . }}}
50       </div>
51       {{/info}}
52       {{#error}}
53       <div class="alert alert-block fade in alert-warning my-2" role="alert">
54          {{#code}}{{{code}}} : {{/code}}{{{ message }}}
55       </div>
56       {{/error}}
57    </div>
58 </div>