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 %>
<% # hack for #860 Need to refactor this and use another dom element to bind projectDefauiltContextsMap to -%>

<%= link_to('iCal', {:format => 'ics', :token => current_user.token}, :title => "iCal feed" ) %> - Get this calendar in iCal format

<% apply_behavior 'input.hide_tickler:click', :prevent_default => true do |page| page << "alert('hiding action in tickler from calendar is not yet implemented');" end %>