Skip to content

Commit

Permalink
Only highlight overdue spites if they're not already done.
Browse files Browse the repository at this point in the history
  • Loading branch information
thommay committed Mar 28, 2010
1 parent 6cff8bd commit e1035d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- if flash.has?(:notice)
%h3{:class=>"notice"}= flash[:notice]
- @spite.sort{|a,b| a["duedate"] <=> b["duedate"]}.each do |spite|
- @over = (Time.now.to_i > spite["duedate"] ? " overdue" : "")
- @over = (Time.now.to_i > spite["duedate"] ? " overdue" : "") unless @done
%article{:class=>"spite span-24 #{@over}", :id=>spite["id"]}
%div{:class=>"note span-16"}= spite["contents"]
%div{:class=>"span-4 alt duedate"}
Expand Down

0 comments on commit e1035d9

Please sign in to comment.