Skip to content

Commit

Permalink
MDL-73354 advanced grading: Updated management page.
Browse files Browse the repository at this point in the history
The management page will no longer show the activity name in the
title if using secondary navigation.
  • Loading branch information
abgreeve committed Feb 9, 2022
1 parent 1b0fec7 commit 75aed26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -37,7 +37,7 @@ Feature: Publish rubrics as templates
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I set "Test assignment 2 name" activity to use "Assignment 1 rubric" grading form
Then I should see "Advanced grading: Test assignment 2 name (Submissions)"
Then I should see "Advanced grading"
And I should see "Criterion 1"
And I should see "Assignment 1 description"
And I go to "Test assignment 2 name" advanced grading definition page
Expand Down
8 changes: 6 additions & 2 deletions grade/grading/manage.php
Expand Up @@ -148,8 +148,12 @@
echo $output->management_message($message);
}

echo $output->heading(get_string('gradingmanagementtitle', 'core_grading', array(
'component' => $manager->get_component_title(), 'area' => $manager->get_area_title())));
if ($PAGE->has_secondary_navigation()) {
echo $output->heading(get_string('gradingmanagement', 'core_grading'));
} else {
echo $output->heading(get_string('gradingmanagementtitle', 'core_grading', array(
'component' => $manager->get_component_title(), 'area' => $manager->get_area_title())));
}

// display the active grading method information and selector
echo $output->management_method_selector($manager, $PAGE->url);
Expand Down

0 comments on commit 75aed26

Please sign in to comment.