Improve display of preview attemtp summary on quiz view page.

This commit is contained in:
tjhunt
2007-07-19 10:27:54 +00:00
parent 29a5680ef7
commit e584e7c84e

View File

@ -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 = '';