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_privacy/htmlpage
20 Renders the user export html page.
21 This template is not for use within moodle.
23 Classes required for JS:
26 Data attributes required for JS:
29 Context variables required for this template:
36 Example context (json):
39 "navigation": "Navigation html",
40 "systemname": "Test System",
42 "timegenerated": 1536906530,
43 "username": "John Jones"
48 <html {{#righttoleft}}dir="rtl"{{/righttoleft}}>
50 <meta charset="UTF-8">
51 <title>Data export</title>
52 <link rel="stylesheet" type="text/css" href="moodle.css" />
53 <link rel="stylesheet" type="text/css" href="general.css" />
56 <nav class="navbar navbar-light bg-light border-bottom">
57 <a class="navbar-brand" href="https://moodle.org" title="Moodle">
58 <img class="moodle-logo" src="pix/moodlelogo.svg" alt="Moodle logo" />
60 <span class="navbar-brand">{{#str}}broughtbymoodle, core_privacy{{/str}}</span>
62 <div id="page" class="container-fluid mt-2">
65 <div data-main-content class="jumbotron bg-light border">
66 <h2 class="display-8">{{#str}}viewdata, core_privacy{{/str}}</h2>
68 <script src="js/jquery-3.4.1.min.js"></script>
69 <script src="js/data_index.js"></script>
70 <script src="js/general.js"></script>
71 <script src="js/require.min.js"></script>
77 "jquery": "./js/jquery-3.4.1.min",
78 "core/tree": "./js/tree.min"
83 require(['core/tree'], function(t) {
84 var tree = new t('#my-tree');
85 tree.registerEnterCallback(function(item) {
86 var basenode = $(item[0].childNodes[0]);
87 if (basenode.attr('data-var') != undefined) {
88 handleClick(basenode);
89 } else if (basenode.attr('href') != undefined) {
90 window.location.href = basenode.attr('href');
95 <footer class="footer">
96 <div class="container">
98 <div class="text-center text-muted">{{#str}}exportfrom, core_privacy, <a href="{{{siteurl}}}" title="{{systemname}}">{{systemname}}</a>{{/str}}</div>
99 <div class="text-center text-muted">{{#str}}exporttime, core_privacy, {{#userdate}}{{timegenerated}},{{#str}}strftimedatetime, langconfig{{/str}}{{/userdate}}{{/str}}</div>
100 <div class="text-center text-muted">{{#str}}exportuser, core_privacy, {{username}}{{/str}}</div>