diff --git a/completion/tests/behat/completion_course_page_display.feature b/completion/tests/behat/completion_course_page_display.feature index cd2bc387ad2..1a45384cc7a 100644 --- a/completion/tests/behat/completion_course_page_display.feature +++ b/completion/tests/behat/completion_course_page_display.feature @@ -38,7 +38,6 @@ Feature: Show activity completion status or activity completion configuration on Scenario: Show completion status to students Given I log in as "student1" And I am on "Course 1" course homepage - Then I should see "Your progress" And the manual completion button of "Test forum name" is displayed as "Mark as done" And the "View" completion condition of "Test assignment name" is displayed as "todo" And there should be no completion information shown for "Test quiz name" @@ -46,12 +45,10 @@ Feature: Show activity completion status or activity completion configuration on Scenario: Show completion configuration to editing teachers Given I log in as "teacher1" And I am on "Course 1" course homepage - Then I should not see "Your progress" And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name" And I am on "Course 1" course homepage with editing mode on - And I should not see "Your progress" And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name" @@ -59,7 +56,6 @@ Feature: Show activity completion status or activity completion configuration on Scenario: Show completion configuration to non-editing teachers Given I log in as "teacher2" And I am on "Course 1" course homepage - Then I should not see "Your progress" And the manual completion button for "Test forum name" should be disabled And "Test assignment name" should have the "View" completion condition And there should be no completion information shown for "Test quiz name" diff --git a/course/classes/output/section_format.php b/course/classes/output/section_format.php index 6ff0f0f2c03..d57d6f2b65c 100644 --- a/course/classes/output/section_format.php +++ b/course/classes/output/section_format.php @@ -157,10 +157,6 @@ class section_format implements renderable, templatable { $cmlist = new $this->cmlistclass($format, $thissection); $data->cmlist = $cmlist->export_for_template($output); - // Section 0 could have a completion help icon. - $completioninfo = new completion_info($course); - $data->completioninfo = $completioninfo->display_help_icon(); - $header = new $this->headerclass($format, $thissection); if (empty($this->hidetitle)) { $data->header = $header->export_for_template($output); diff --git a/course/format/renderer.php b/course/format/renderer.php index 3fe14315bf8..c25b5d90b0a 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -869,9 +869,6 @@ abstract class format_section_renderer_base extends core_course_renderer { echo $startlist; echo $this->section_header($thissection, $course, true, $displaysection); - // Show completion help icon. - $completioninfo = new completion_info($course); - echo $completioninfo->display_help_icon(); echo $this->course_section_cm_list($course, $thissection, $displaysection); echo $this->course_section_add_cm_control($course, $displaysection, $displaysection); @@ -942,9 +939,6 @@ abstract class format_section_renderer_base extends core_course_renderer { $course = $format->get_course(); $context = context_course::instance($course->id); - // Title with completion help icon. - $completioninfo = new completion_info($course); - echo $completioninfo->display_help_icon(); echo $this->output->heading($pagetitle, 2, 'accesshide'); // Copy activity clipboard.. diff --git a/course/templates/local/section_format.mustache b/course/templates/local/section_format.mustache index ccb9f901454..e1e84757099 100644 --- a/course/templates/local/section_format.mustache +++ b/course/templates/local/section_format.mustache @@ -59,7 +59,6 @@ "ishidden": false, "iscurrent": true, "currentlink": "This topic", - "completioninfo": "Completion Info", "availability": { "info": "Hidden from students", "hasavailability": true @@ -91,7 +90,6 @@