Skip to content

Commit

Permalink
MDL-16263 - next bit. Flags on the quiz summary page.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Aug 29, 2008
1 parent 94eebf5 commit e41a7d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion mod/quiz/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@
if ($question->length == 0) {
continue;
}
$row = array('<a href="' . $attemptobj->attempt_url($question->id) . '">' . $number . '</a>',
$flag = '';
if ($attemptobj->is_question_flagged($question->id)) {
$flag = ' <img src="' . $CFG->pixpath . '/i/flagged.png" alt="' .
get_string('flagged', 'question') . '" class="questionflag" />';
}
$row = array('<a href="' . $attemptobj->attempt_url($question->id) . '">' . $number . $flag . '</a>',
get_string($attemptobj->get_question_status($question->id), 'quiz'));
if ($scorescolumn) {
$row[] = $attemptobj->get_question_score($question->id);
Expand Down
6 changes: 5 additions & 1 deletion theme/standard/styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -3923,7 +3923,11 @@ body#mod-forum-search .introcontent {
#mod-quiz-summary .submitbtns {
margin-top: 1.5em;
}

#mod-quiz-summary .questionflag {
width: 16px;
height: 16px;
vertical-align: middle;
}
#mod-quiz-attempt #quiz-timer {
display: none;
}
Expand Down

0 comments on commit e41a7d2

Please sign in to comment.