Merge branch 'MDL-80121-402' of https://github.com/junpataleta/moodle into MOODLE_402_STABLE

This commit is contained in:
Ilya Tregubov
2023-11-16 10:01:24 +08:00
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -891,6 +891,12 @@ function print_grade_page_head(int $courseid, string $active_type, ?string $acti
?string $headerhelpcomponent = null, ?stdClass $user = null, ?action_bar $actionbar = null, $showtitle = true) {
global $CFG, $OUTPUT, $PAGE, $USER;
if ($heading !== false) {
// Make sure to trim heading, including the non-breaking space character.
$heading = str_replace(" ", " ", $heading);
$heading = trim($heading);
}
// Put a warning on all gradebook pages if the course has modules currently scheduled for background deletion.
require_once($CFG->dirroot . '/course/lib.php');
if (course_modules_pending_deletion($courseid, true)) {
@@ -26,6 +26,6 @@
}}
<div class="zero-state mx-auto w-50 text-center my-6">
<img src="{{imglink}}" alt="{{#str}}viewsinglegradeitem, gradereport_singleview{{/str}}" aria-hidden="true" class="my-5">
<h3>{{#str}}viewsinglegradeitem, gradereport_singleview{{/str}}</h3>
<h2 class="h3">{{#str}}viewsinglegradeitem, gradereport_singleview{{/str}}</h2>
<p>{{#str}}singleviewdescription, gradereport_singleview{{/str}}</p>
</div>
@@ -26,6 +26,6 @@
}}
<div class="zero-state mx-auto w-50 text-center my-6">
<img src="{{imglink}}" alt="{{#str}}viewsingleuser, gradereport_singleview{{/str}}" aria-hidden="true" class="my-5">
<h3>{{#str}}viewsingleuser, gradereport_singleview{{/str}}</h3>
<h2 class="h3">{{#str}}viewsingleuser, gradereport_singleview{{/str}}</h2>
<p>{{#str}}singleviewdescription, gradereport_singleview{{/str}}</p>
</div>