<%= form('add', context) %> <% bg = ERbUtil::BGAttr.new list = @todo.fetch_hash(@session.username) %> <% list.each do |item| if item['time'] < Time.now + 24 * 60 * 60 trbg = 'bgcolor="#eeaaaa"' else trbg = bg.to_s end %> > <% end %> <% if @mode == :edit trbg = 'bgcolor="#eeeedd"' %> > > > > <% else %> <% end %>
ToDo: <%= list.size%> items
<%= item['priority'] %> <%=h item['time'].strftime('%m/%d') %> <%=h item['text'] %> [<%=a('remove', {'key'=>item['key']}, context)%>X]
Prio.
Date
Memo
[<%=a('browse', {}, context)%>Close]
[<%=a('edit', {}, context)%>Add]