<%
suppress_context ||= false
suppress_project ||= false
suppress_dependencies ||= false
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
%>
<div id="<%= dom_id(successor, 'successor') %>" class="item-container">
  <div id="<%= dom_id(successor, 'successor_line') %>">
    <div class="description<%= staleness_class( successor ) %>" style="margin-left: 20px">
      <span class="todo.descr"><%= h sanitize(successor.description) %></span>

      <%= remote_delete_dependency(successor, predecessor) %>

      <% unless successor.pending_successors.empty? %>
        <div class="todo_successors" id="<%= dom_id(successor, 'successors') %>">
          <%= render :partial => "todos/successor",
            :collection => successor.pending_successors,
            :locals => { :todo => successor,
            :parent_container_type => parent_container_type,
            :suppress_dependencies => true,
            :predecessor => successor }
        %>
        </div>
      <% end %>
    </div>
  </div>
</div>