%
highlight = 'bgcolor="#ddddaa"'
if user
bg = BGAttr.new
found = {}
estimate = 0.0
actual = 0.0
%>
<%=h user %>
>
<%
each do |date, event|
estimate += event.estimate if event.estimate
actual += event.actual if event.actual
if date == @curr
found = event
bg.succ
bgattr = highlight
else
bgattr = bg
end
%>