]> git.mjollnir.org Git - moodle.git/commitdiff
Show date in red if assignment date has passed
authormoodler <moodler>
Mon, 28 Oct 2002 02:25:18 +0000 (02:25 +0000)
committermoodler <moodler>
Mon, 28 Oct 2002 02:25:18 +0000 (02:25 +0000)
mod/assignment/view.php

index 05e04c2a5d3d8389d1171e1b461a3f33b211381d..85a74a84bc66449614dcdb6f4c2a9a6523d84ba7 100644 (file)
@@ -57,6 +57,9 @@
     }
 
     $strdifference = format_time($assignment->timedue - time());
+    if (($assignment->timedue - time()) < 0) {
+        $strdifference = "<FONT COLOR=RED>$strdifference</FONT>";
+    }
     $strduedate = userdate($assignment->timedue)." ($strdifference)";
 
     print_simple_box_start("CENTER");