MDL-45679 mod_lesson: Essay grading page has no mark for essay status

This commit is contained in:
Jean-Michel Vedrine 2014-10-12 14:56:32 +02:00
parent 2d84748c26
commit cfcfd7045f
2 changed files with 15 additions and 3 deletions

View file

@ -356,11 +356,11 @@ switch ($mode) {
$attributes = array(); $attributes = array();
// Different colors for all the states of an essay (graded, if sent, not graded) // Different colors for all the states of an essay (graded, if sent, not graded)
if (!$essayinfo->graded) { if (!$essayinfo->graded) {
$attributes['class'] = "graded"; $attributes['class'] = "essayungraded";
} elseif (!$essayinfo->sent) { } elseif (!$essayinfo->sent) {
$attributes['class'] = "sent"; $attributes['class'] = "essaygraded";
} else { } else {
$attributes['class'] = "ungraded"; $attributes['class'] = "essaysent";
} }
$essaylinks[] = html_writer::link($url, userdate($essay->timeseen, get_string('strftimedatetime')).' '.format_string($pages[$essay->pageid]->title,true), $attributes); $essaylinks[] = html_writer::link($url, userdate($essay->timeseen, get_string('strftimedatetime')).' '.format_string($pages[$essay->pageid]->title,true), $attributes);
} }

View file

@ -83,3 +83,15 @@
#lesson-timer { #lesson-timer {
text-align: center; text-align: center;
} }
.path-mod-lesson a:link.essayungraded{
background-color: #efcfcf;
}
.path-mod-lesson a:link.essaygraded {
background-color: #efefcf;
}
.path-mod-lesson a:link.essaysent {
background-color: #cfefcf;
}