This commit is contained in:
Ilya Tregubov 2023-11-16 10:00:39 +08:00
commit ddd19a3bf2
No known key found for this signature in database
GPG Key ID: 0F58186F748E55C1
3 changed files with 8 additions and 2 deletions

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, $unused = null) {
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);
}
if ($unused !== null) {
debugging('Deprecated argument passed to ' . __FUNCTION__, DEBUG_DEVELOPER);
}

View File

@ -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>

View File

@ -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>