diff --git a/app/views/todos/_successor.html.erb b/app/views/todos/_successor.html.erb index 9570d0b3..c379682f 100644 --- a/app/views/todos/_successor.html.erb +++ b/app/views/todos/_successor.html.erb @@ -8,12 +8,9 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' %>
-
- <%= 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? %> + <%= render(:partial => "todos/toggle_successors", :locals => { :item => successor, :suppress_button => true }) unless successor.pending_successors.empty? %>
diff --git a/app/views/todos/_toggle_successors.html.erb b/app/views/todos/_toggle_successors.html.erb index 34a73c15..a0a8883f 100644 --- a/app/views/todos/_toggle_successors.html.erb +++ b/app/views/todos/_toggle_successors.html.erb @@ -1,9 +1,14 @@ -<%= link_to(image_tag( 'blank.png', :width=>'16', :height=>'16', :border=>'0' ), "#", {:class => 'show_successors', :title => 'Show successors'}) %> +<% +suppress_button ||= false +%> +<%= link_to(image_tag( 'blank.png', :width=>'16', :height=>'16', :border=>'0' ), "#", {:class => 'show_successors', :title => 'Show successors'}) unless suppress_button %> -