<% suppress_context ||= false suppress_project ||= false suppress_edit_button ||= todo.completed? parameters = "_source_view=#{@source_view}" parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' @z_index_counter = @z_index_counter - 1 # for IE z-index bug @rec_depth=0 # to prevent stack overflow on large dependency trees, see _successor.html.erb # invalidate the cache every day because of staleness or # rendering of "due in x days" that change without touching updated at of the todo # also make different caches per source_view to handle difference in showing [C] and [P] cache [todo, current_user.date.strftime("%Y%m%d"), @source_view] do %>
<%= remote_star_icon(todo) %> <%= remote_toggle_checkbox(todo) %> <%= remote_edit_button(todo) unless suppress_edit_button %> <%= grip_span(todo) %>
<%= date_span(todo) -%> <%= h todo.description %> <%= image_tag_for_recurring_todo(todo) if todo.from_recurring_todo? %> <%= tag_list(todo) %> <%= deferred_due_date(todo) %> <%= project_and_context_links( todo, parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %> <%= collapsed_notes_image(todo) unless todo.notes.blank? %> <%= collapsed_successors_image(todo) if todo.has_pending_successors %>
<% end %>