Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59d827
)
Show date in red if assignment date has passed
author
moodler
<moodler>
Mon, 28 Oct 2002 02:25:18 +0000
(
02:25
+0000)
committer
moodler
<moodler>
Mon, 28 Oct 2002 02:25:18 +0000
(
02:25
+0000)
mod/assignment/view.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assignment/view.php
b/mod/assignment/view.php
index
05e04c2
..
85a74a8
100644
(file)
--- a/
mod/assignment/view.php
+++ b/
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");