<% 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 %> > <% end %> >
[<%=a('delete', {'date'=>date.to_s}, context)%>X] <%=h date.to_s %> <%=h event.text %> <%=h event.estimate %> <%=h event.actual %> [<%=a('detail', {'date'=>date.to_s}, context)%>>>]
total: <%=h estimate %> <%=h actual %>
<%=form('update', context)%> >
edit
text
estimate
actual
<% end %>