diff --git a/tracks/app/helpers/application_helper.rb b/tracks/app/helpers/application_helper.rb
index 928bba29..2f27d0ff 100644
--- a/tracks/app/helpers/application_helper.rb
+++ b/tracks/app/helpers/application_helper.rb
@@ -43,16 +43,21 @@ module ApplicationHelper
@now = Date.today
@days = due-@now
+
case @days
# overdue or due very soon! sound the alarm!
- when -365..1
- "" + format_date(due) + " "
+ when -365..-1
+ "Overdue by " + (@days * -1).to_s + " days "
+ when 0
+ "Due Today "
+ when 1
+ "Due Tommorrow "
# due 2-7 days away
when 2..7
- "" + format_date(due) + " "
+ "Due in " + @days.to_s + " days "
# more than a week away - relax
else
- "" + format_date(due) + " "
+ "Due in " + @days.to_s + " days "
end
end
diff --git a/tracks/doc/CHANGELOG b/tracks/doc/CHANGELOG
index 51fe1f4e..3e6e5083 100644
--- a/tracks/doc/CHANGELOG
+++ b/tracks/doc/CHANGELOG
@@ -29,6 +29,7 @@ Wiki (deprecated - please use Trac): http://www.rousette.org.uk/projects/wiki/
12. Changed the shebang lines to #!/usr/bin/env ruby. This should work for all *nix based setups (Linux or Mac OS X), but Windows users will probably have to change it. Try this command at the command line, run inside the Tracks directory:
ruby -i.bak -pe 'gsub!("#!/usr/bin/env ruby", "#!c:/ruby/bin/ruby")' public/dispatch.* script/*
13. The TXT view is now sorted by position, just as the home page is.
+14. Contributed by lolindrath: Items that are overdue are coloured red, and have the text 'Overdue by X days' in the badge. Other due dates are given as days from now (up to a week away in orange, more than a week away in green), and the tool tip shows the actual date.
== Version 1.03
diff --git a/tracks/public/stylesheets/standard.css b/tracks/public/stylesheets/standard.css
index c343799b..677dfaa8 100644
--- a/tracks/public/stylesheets/standard.css
+++ b/tracks/public/stylesheets/standard.css
@@ -291,6 +291,13 @@ a.footer_link:hover {color: #fff; background-color: #cc3334 !important;}
padding: 1px;
font-size: 10px;
}
+
+.orange {
+ color: #fff;
+ background: #FFA500;
+ padding: 1px;
+ font-size: 10px;
+ }
.green {
color: #fff;