Merge branch 'MDL-45679' of git://github.com/jmvedrine/moodle

This commit is contained in:
Dan Poltawski 2014-12-09 12:05:29 +00:00
commit 9478d117fc
2 changed files with 15 additions and 3 deletions

View File

@ -356,11 +356,11 @@ switch ($mode) {
$attributes = array();
// Different colors for all the states of an essay (graded, if sent, not graded)
if (!$essayinfo->graded) {
$attributes['class'] = "graded";
$attributes['class'] = "essayungraded";
} elseif (!$essayinfo->sent) {
$attributes['class'] = "sent";
$attributes['class'] = "essaygraded";
} 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);
}

View File

@ -83,3 +83,15 @@
#lesson-timer {
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;
}