Merge branch 'MDL-73356-master' of git://github.com/abgreeve/moodle

This commit is contained in:
Ilya Tregubov 2022-01-17 12:10:18 +02:00
commit e21ec28dc3
2 changed files with 5 additions and 7 deletions

View File

@ -94,9 +94,7 @@ $PAGE->activityheader->set_attrs([
if ($start and $end and !$confirmdelete) { // Show a full transcript.
$PAGE->navbar->add($strchatreport);
$PAGE->set_title(format_string($chat->name).": $strchatreport");
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($chat->name), 2);
// Check to see if groups are being used here.
$groupmode = groups_get_activity_groupmode($cm);
@ -153,10 +151,10 @@ if ($start and $end and !$confirmdelete) { // Show a full transcript.
// Print the Sessions display.
$PAGE->navbar->add($strchatreport);
$PAGE->set_title(format_string($chat->name).": $strchatreport");
$PAGE->set_title($strchatreport);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($chat->name).': '.get_string('sessions', 'chat'), 2);
echo $OUTPUT->heading(get_string('sessions', 'chat'), 2);
// Check to see if groups are being used here
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used.

View File

@ -103,8 +103,6 @@ if ($currentgroup) {
// Print the page header.
echo $OUTPUT->header();
groups_print_activity_menu($cm, $CFG->wwwroot . "/mod/chat/view.php?id=$cm->id");
if (has_capability('mod/chat:chat', $context)) {
// Print the main part of the page.
echo $OUTPUT->box_start('generalbox', 'enterlink');
@ -119,7 +117,7 @@ if (has_capability('mod/chat:chat', $context)) {
$params['id'] = $chat->id;
$chattarget = new moodle_url("/mod/chat/gui_$CFG->chat_method/index.php", $params);
echo html_writer::start_div('container-fluid');
echo html_writer::start_div('container-fluid mb-2');
echo html_writer::start_div('row');
echo html_writer::start_div('col-xs-6 mr-3');
echo $OUTPUT->action_link($chattarget,
@ -147,10 +145,12 @@ if (has_capability('mod/chat:chat', $context)) {
echo '</p>';
}
}
groups_print_activity_menu($cm, $CFG->wwwroot . "/mod/chat/view.php?id=$cm->id");
echo $OUTPUT->box_end();
} else {
groups_print_activity_menu($cm, $CFG->wwwroot . "/mod/chat/view.php?id=$cm->id");
echo $OUTPUT->box_start('generalbox', 'notallowenter');
echo '<p>'.get_string('notallowenter', 'chat').'</p>';
echo $OUTPUT->box_end();