Permalink
Browse files

Show date in red if assignment date has passed

  • Loading branch information...
moodler
moodler committed Oct 28, 2002
1 parent f59d827 commit 41f2f344abc4f445f256889777940048a4963565
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/assignment/view.php
View
@@ -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");

0 comments on commit 41f2f34

Please sign in to comment.