1 |
efrain |
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 mod_bigbluebuttonbn/room_view
|
|
|
19 |
|
|
|
20 |
This template renders the mobile page.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"bigbluebuttonbnid": 1,
|
|
|
25 |
"groupid": 0,
|
|
|
26 |
"statusclosed": true,
|
|
|
27 |
"statusclosed": false,
|
|
|
28 |
"openingtime": 123456789,
|
|
|
29 |
"closingtime": 987654321
|
|
|
30 |
}
|
|
|
31 |
}}
|
|
|
32 |
|
|
|
33 |
<div id="bigbluebuttonbn-room-view" class="box py-3 generalbox boxaligncenter d-flex flex-column flex-md-row" data-bbb-id="{{bigbluebuttonbnid}}"
|
|
|
34 |
data-group-id="{{groupid}}">
|
|
|
35 |
<div id="bigbluebuttonbn-information">
|
|
|
36 |
<div id="bigbluebuttonbn-status-bar" class="text-wrap">
|
|
|
37 |
{{#statusrunning}}
|
|
|
38 |
<div>
|
|
|
39 |
<span class="font-weight-bold">{{#str}}view_message_session_started_at, mod_bigbluebuttonbn{{/str}}:</span>
|
|
|
40 |
<span>{{#userdate}} {{startedat}}, {{#str}} strftimetime, core_langconfig{{/str}} {{/userdate}}.</span>
|
|
|
41 |
<span class="status-message">{{statusmessage}}</span>
|
|
|
42 |
</div>
|
|
|
43 |
{{/statusrunning}}
|
|
|
44 |
{{^statusrunning}}
|
|
|
45 |
<div class="status-message">{{statusmessage}}</div>
|
|
|
46 |
{{/statusrunning}}
|
|
|
47 |
<div class="conf-opening-time">
|
|
|
48 |
{{#openingtime}}
|
|
|
49 |
<span class="conf-opening">
|
|
|
50 |
<span class="font-weight-bold">{{#str}}mod_form_field_openingtime, bigbluebuttonbn{{/str}}:</span>
|
|
|
51 |
{{#userdate}} {{.}}, {{#str}} strftimedaydatetime, langconfig {{/str}} {{/userdate}}
|
|
|
52 |
</span>
|
|
|
53 |
{{/openingtime}}
|
|
|
54 |
{{#closingtime}}
|
|
|
55 |
<div class="conf-closing">
|
|
|
56 |
<span class="font-weight-bold">{{#str}}mod_form_field_closingtime, bigbluebuttonbn{{/str}}:</span>
|
|
|
57 |
{{#userdate}} {{.}}, {{#str}} strftimedaydatetime, langconfig {{/str}} {{/userdate}}
|
|
|
58 |
</div>
|
|
|
59 |
{{/closingtime}}
|
|
|
60 |
</div>
|
|
|
61 |
{{#statusrunning}}
|
|
|
62 |
<div>
|
|
|
63 |
<span class="font-weight-bold">
|
|
|
64 |
{{#moderatorplural}}{{#str}}view_message_moderators, mod_bigbluebuttonbn{{/str}}{{/moderatorplural}}
|
|
|
65 |
{{^moderatorplural}}{{#str}}view_message_moderator, mod_bigbluebuttonbn{{/str}}{{/moderatorplural}}:
|
|
|
66 |
</span>
|
|
|
67 |
<span>{{moderatorcount}}</span>
|
|
|
68 |
</div>
|
|
|
69 |
<div>
|
|
|
70 |
<span class="font-weight-bold">
|
|
|
71 |
{{#viewerplural}}{{#str}}view_message_viewers, mod_bigbluebuttonbn{{/str}}{{/viewerplural}}
|
|
|
72 |
{{^viewerplural}}{{#str}}view_message_viewer, mod_bigbluebuttonbn{{/str}}{{/viewerplural}}:
|
|
|
73 |
</span>
|
|
|
74 |
<span>{{participantcount}}</span>
|
|
|
75 |
</div>
|
|
|
76 |
{{/statusrunning}}
|
|
|
77 |
</div>
|
|
|
78 |
|
|
|
79 |
<div id="bigbluebuttonbn-room-view-control-panel" data-bbb-id="{{bigbluebuttonbnid}}" class="mt-2">
|
|
|
80 |
{{#haspresentations}}
|
|
|
81 |
<h5>{{#str}}view_section_title_presentation, mod_bigbluebuttonbn{{/str}}</h5>
|
|
|
82 |
<div class="list-group list-group-flush">
|
|
|
83 |
{{#presentations}}
|
|
|
84 |
<a href="{{url}}" target="_blank" class="list-group-item list-group-item-action">
|
|
|
85 |
{{#pix}}{{iconname}},core, {{icondesc}}{{/pix}}
|
|
|
86 |
{{name}}
|
|
|
87 |
</a>
|
|
|
88 |
{{/presentations}}
|
|
|
89 |
</div>
|
|
|
90 |
{{/haspresentations}}
|
|
|
91 |
</div>
|
|
|
92 |
</div>
|
|
|
93 |
<div id="bigbluebuttonbn-view-action-button-box" class="mt-0 ml-auto mr-auto mr-md-0">
|
|
|
94 |
<div id="bigbluebuttonbn-room-view-action-buttons"
|
|
|
95 |
class="d-flex flex-column-reverse flex-md-row">
|
|
|
96 |
{{#ismoderator}}
|
|
|
97 |
{{#guestaccessenabled}}
|
|
|
98 |
{{> mod_bigbluebuttonbn/guest_links}}
|
|
|
99 |
{{/guestaccessenabled}}
|
|
|
100 |
{{> mod_bigbluebuttonbn/end_session_button}}
|
|
|
101 |
{{/ismoderator}}
|
|
|
102 |
|
|
|
103 |
{{#canjoin}}
|
|
|
104 |
<a {{!
|
|
|
105 |
}} href="{{{joinurl}}}"{{!
|
|
|
106 |
}} class="btn btn-primary bbb-btn-action m-1"{{!
|
|
|
107 |
}} data-action="join"{{!
|
|
|
108 |
}} target="_blank"{{!
|
|
|
109 |
}}>
|
|
|
110 |
{{#str}}view_conference_action_join, mod_bigbluebuttonbn{{/str}}
|
|
|
111 |
</a>
|
|
|
112 |
{{/canjoin}}
|
|
|
113 |
</div>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|