AutorÃa | Ultima modificación | Ver Log |
{{!
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 <http://www.gnu.org/licenses/>.
}}
{{!
@template mod_bigbluebuttonbn/view_page
This template renders the /view.php page.
Example context (json):
{
"instanceid": 1234,
"meetingname": "My first meeting",
"meetingdescription": "This is my <strong>first</strong> meeting!",
"serverwarning": true,
"sitenotification": {
"message": "Unlock premium feature",
"actions": [
{
"url": "https://example.com/",
"name": "action",
"value": "buy",
"title": "Upgrade now"
}
]
},
"pollinterval": 5
}
}}
{{{groupselector}}}
{{#serverwarning}}
{{>core/notification}}
{{/serverwarning}}
{{#sitenotification}}
{{>core/local/notification/cta}}
{{/sitenotification}}
<h3>{{meetingname}}</h3>
<h5>{{{meetingdescription}}}</h5>
{{#room}}
{{>mod_bigbluebuttonbn/room_view}}
{{/room}}
{{#recordings}}
{{>mod_bigbluebuttonbn/recordings_session}}
{{/recordings}}
{{#js}}
require(['mod_bigbluebuttonbn/rooms'], function(rooms) {
// Register action on all buttons.
rooms.init(
{{instanceid}},
{{pollinterval}}
);
});
{{/js}}