mirror of
https://github.com/moodle/moodle.git
synced 2025-06-23 00:24:42 +02:00
Improve display of preview attemtp summary on quiz view page.
This commit is contained in:
@ -219,7 +219,11 @@
|
|||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
// Add the attempt number, making it a link, if appropriate.
|
// Add the attempt number, making it a link, if appropriate.
|
||||||
$row[] = make_review_link($attempt->attempt, $quiz, $attempt);
|
if ($attempt->preview) {
|
||||||
|
$row[] = make_review_link(get_string('preview', 'quiz'), $quiz, $attempt);
|
||||||
|
} else {
|
||||||
|
$row[] = make_review_link($attempt->attempt, $quiz, $attempt);
|
||||||
|
}
|
||||||
|
|
||||||
// prepare strings for time taken and date completed
|
// prepare strings for time taken and date completed
|
||||||
$timetaken = '';
|
$timetaken = '';
|
||||||
|
Reference in New Issue
Block a user