diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 7aac23f5638..7de133931ce 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -396,6 +396,7 @@ $string['courserequestsuccess'] = 'Your course request has been saved successful $string['courserequestsupport'] = 'Supporting information to help the administrator evaluate this request'; $string['courserequestwarning'] = 'The user requesting this course will be automatically enrolled and assigned the role of {$a}.'; $string['courserestore'] = 'Course restore'; +$string['coursereuse'] = 'Course reuse'; $string['courses'] = 'Courses'; $string['coursesectionsummaries'] = 'Course section summaries'; $string['coursesectiontitle'] = 'Course: {$a->course}, {$a->sectionname}: {$a->sectiontitle}'; diff --git a/lib/classes/navigation/views/secondary.php b/lib/classes/navigation/views/secondary.php index 8bbed96ddea..6e24b0de852 100644 --- a/lib/classes/navigation/views/secondary.php +++ b/lib/classes/navigation/views/secondary.php @@ -356,8 +356,8 @@ class secondary extends view { return; } $actionnode = $this->get_first_action_for_node($overflownode); - // All additional nodes will be available under the 'Course admin' page. - $text = get_string('courseadministration'); + // All additional nodes will be available under the 'Course reuse' page. + $text = get_string('coursereuse'); $this->add($text, $actionnode->action, null, null, 'courseadmin', new \pix_icon('t/edit', $text)); } } diff --git a/theme/boost/tests/behat/course_administration.feature b/theme/boost/tests/behat/course_reuse.feature similarity index 77% rename from theme/boost/tests/behat/course_administration.feature rename to theme/boost/tests/behat/course_reuse.feature index 7ebcd5a8b32..948b071e3bd 100644 --- a/theme/boost/tests/behat/course_administration.feature +++ b/theme/boost/tests/behat/course_reuse.feature @@ -1,7 +1,7 @@ @javascript @theme_boost -Feature: Course administration navigation +Feature: Course reuse navigation As a teacher - I can navigate to course administration pages + I can navigate to course reuse pages Background: Given the following "courses" exist: @@ -17,13 +17,13 @@ Feature: Course administration navigation Scenario: A Teacher can navigate to the course Import page. Given I log in as "teacher1" When I am on "Course 1" course homepage - And I navigate to "Course administration" in current page administration + And I navigate to "Course reuse" in current page administration Then I should see "Find a course to import data from:" - Scenario Outline: A Teacher can navigate to other course administration pages. + Scenario Outline: A Teacher can navigate to other Course reuse pages. Given I log in as "teacher1" When I am on "Course 1" course homepage - And I navigate to "Course administration" in current page administration + And I navigate to "Course reuse" in current page administration And I select "" from the "jump" singleselect Then I should see "" @@ -37,6 +37,6 @@ Feature: Course administration navigation Scenario: An Administrator can view the course copy page. Given I log in as "admin" When I am on "Course 1" course homepage - And I navigate to "Course administration" in current page administration + And I navigate to "Course reuse" in current page administration And I select "Copy course" from the "jump" singleselect Then I should see "This course will be duplicated and put into the selected course category"