Merge branch 'MDL-78543' of https://github.com/skodak/moodle
[moodle.git] / mod / bigbluebuttonbn / templates / mobile_view_notification.mustache
blob4a4310a89b58ca13096b9795b91bd7379e0cfe55
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 mod_bigbluebuttonbn/mobile_view_notification
20     This template renders the notifications for mobile page.
22     Example context (json):
23     {
24         "bigbluebuttonbn.intro": "foo",
25         "cmid": 3,
26         "message": "A message",
27         "not_started": [
28           {"not_started.starts_at": "aaa", "not_started.starts_at": "bbb"},
29           {"not_started.starts_at": "aaa", "not_started.starts_at": "bbb"}
30         ]
31     }
33 {{=<% %>=}}
34 <div>
35     <core-course-module-description description="<% bigbluebuttonbn.intro %>" component="mod_bigbluebuttonbn" componentId="<% cmid %>"></core-course-module-description>
36     <ion-list>
37         <ion-item class="ion-text-wrap" text-wrap>
38             <ion-label><% message %></ion-label>
39         </ion-item>
40         <%#not_started%>
41             <ion-item class="ion-text-wrap" text-wrap>
42                 <ion-label>
43                     <p><% not_started.starts_at %></p>
44                     <p><% not_started.ends_at %></p>
45                 </ion-label>
46             </ion-item>
47         <%/not_started%>
48         <span core-site-plugins-call-ws-on-load
49               name="mod_bigbluebuttonbn_can_join" [params]="{cmid: <% cmid %>}" (onSuccess)="onCanJoinReturns($event)"></span>
50     </ion-list>
51 </div>