diff --git a/app/views/todos/_successor.html.erb b/app/views/todos/_successor.html.erb new file mode 100644 index 00000000..9570d0b3 --- /dev/null +++ b/app/views/todos/_successor.html.erb @@ -0,0 +1,20 @@ +<% +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 +%> +
+
+
+ <%= link_to(image_tag( 'blank.png', :width=>'16', :height=>'16', :border=>'0', :class => 'delete_item' ), "#", + { :class => 'remove_successor', :title => 'Remove successor', :style => "background: transparent;"}) %> + <%= h sanitize(successor.description) %> + <% #= successors_span %> + <%= render(:partial => "todos/toggle_successors", :locals => { :item => successor }) unless successor.pending_successors.empty? %> +
+
+
+ diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 0d023284..2ca193d0 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -25,12 +25,13 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' <%= grip_span %> <%= date_span -%> <%= h sanitize(todo.description) %> - <%= successors_span %> + <% #= successors_span %> <%= image_tag_for_recurring_todo(todo) if @todo.from_recurring_todo? %> <%= tag_list %> <%= deferred_due_date %> <%= project_and_context_links( parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %> <%= render(:partial => "todos/toggle_notes", :locals => { :item => todo }) if todo.notes? %> + <%= render(:partial => "todos/toggle_successors", :locals => { :item => todo }) unless todo.pending_successors.empty? %>