diff --git a/plugin/bbb/admin.php b/plugin/bbb/admin.php index 3aba6c26b1..614e25ada5 100644 --- a/plugin/bbb/admin.php +++ b/plugin/bbb/admin.php @@ -17,7 +17,9 @@ $plugin = BBBPlugin::create(); $tool_name = $plugin->get_lang('Videoconference'); $tpl = new Template($tool_name); -$bbb = new bbb('', ''); +$isGlobal = isset($_GET['global']) ? true : false; + +$bbb = new bbb('', '', $isGlobal); $action = isset($_GET['action']) ? $_GET['action'] : null; $meetings = $bbb->getMeetings(); diff --git a/plugin/bbb/admin.tpl b/plugin/bbb/admin.tpl index 3b9bee6274..af91fc01b2 100644 --- a/plugin/bbb/admin.tpl +++ b/plugin/bbb/admin.tpl @@ -7,6 +7,7 @@ {{ 'Course'|get_lang }} {{ 'Session'|get_lang }} {{ 'Participants'|get_lang }} + {{ 'Actions'|get_lang }} @@ -30,10 +31,15 @@ {{ meeting.show_links }} {% endif %} - {{ meeting.course ?: '-' }} - {{ meeting.session ?: '-' }} + {{ meeting.course ? meeting.course.title : '-' }} + {{ meeting.session ? meeting.session.name : '-' }} + {{ meeting.participants ? meeting.participants|join('
') : '-' }} - {{ meeting.participants ? meeting.participants|join('
') : '-' }} + {% if meeting.status == 1 %} + {{ 'CloseMeeting'|get_lang }} + {% else %} + {{ meeting.action_links }} + {% endif %} {% endfor %}