Due today
>
No actions due today
<%= render :partial => "todos/todo", :collection => @due_today %>
Due in rest of this week
>
No actions due in rest of this week
<%= render :partial => "todos/todo", :collection => @due_this_week %>
Due next week
>
No actions due in next week
<%= render :partial => "todos/todo", :collection => @due_next_week %>
Due in rest of <%= Time.zone.now.strftime("%B") %>
>
No actions due in rest of this month
<%= render :partial => "todos/todo", :collection => @due_this_month %>
Due in <%= (Time.zone.now+1.month).strftime("%B") %> and later
>
No actions due after this month
<%= render :partial => "todos/todo", :collection => @due_after_this_month %>