From cfcfd7045f5f55b0424eea85be8913113817e1e0 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 12 Oct 2014 14:56:32 +0200 Subject: [PATCH] MDL-45679 mod_lesson: Essay grading page has no mark for essay status --- mod/lesson/essay.php | 6 +++--- mod/lesson/styles.css | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mod/lesson/essay.php b/mod/lesson/essay.php index 94331dc8079..a05e46faf03 100644 --- a/mod/lesson/essay.php +++ b/mod/lesson/essay.php @@ -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); } diff --git a/mod/lesson/styles.css b/mod/lesson/styles.css index de3ddf3a371..4d17e7e52a3 100644 --- a/mod/lesson/styles.css +++ b/mod/lesson/styles.css @@ -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; +}