Skip to content
Browse files

Show date in red if assignment date has passed

  • Loading branch information...
1 parent f59d827 commit 41f2f344abc4f445f256889777940048a4963565 moodler committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/assignment/view.php
View
3 mod/assignment/view.php
@@ -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.
Something went wrong with that request. Please try again.