Applied Luke's patch (#167) for the staleness colouring bug in Apache.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@168 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-12-07 19:11:44 +00:00
parent 7d33019265
commit a07ae7b2b3

View file

@ -77,7 +77,7 @@ module TodoHelper
# * l3: created more than 3 x staleness_starts # * l3: created more than 3 x staleness_starts
# #
def staleness_class(item) def staleness_class(item)
if item.due || item.done if item.due || item.done?
return "" return ""
elsif item.created_at < (ApplicationController::STALENESS_STARTS*3).days.ago elsif item.created_at < (ApplicationController::STALENESS_STARTS*3).days.ago
return " stale_l3" return " stale_l3"