MDL-79324 quiz: Don't show "Back" button in secure layout.

This commit is contained in:
Luca Bösch
2026-03-06 11:07:02 +01:00
parent 65b51ef436
commit 5c620aa060
2 changed files with 5 additions and 0 deletions
@@ -534,6 +534,10 @@ class renderer extends plugin_renderer_base {
*/
public function during_attempt_tertiary_nav($quizviewurl): string {
$output = '';
if ($this->page->pagelayout === 'secure') {
// Do not show the back button in the secure layout on quiz pages.
return $output;
}
$output .= html_writer::start_div('tertiary-navigation');
$output .= html_writer::start_div('row');
$output .= html_writer::start_div('navitem');
@@ -79,3 +79,4 @@ Feature: Attempt a quiz in secure layout
But I should not see "Quiz 1 description"
And I should not see "Opened:"
And I should not see "Closes:"
And I should not see "Back"