From fc9ffeaa4bf6c19e4788f970ce3d200d0c9f7279 Mon Sep 17 00:00:00 2001 From: Henrik Bohre Date: Mon, 8 Jun 2009 23:42:46 +0200 Subject: [PATCH] #300: Removing link tag from successor icon --- app/helpers/todos_helper.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 9f186721..23cda92f 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -99,11 +99,10 @@ module TodosHelper end def successors_span - unless @todo.successors.empty? - successors_count = @todo.successors.length - title = "Has #{pluralize(successors_count, 'pending action')}: #{@todo.successors.map(&:description).join(', ')}" - link_to(image_tag( 'blank.png', :width=>'10', :height=>'16', :border=>'0' ), - '#', {:class => 'show_successors', :title => title}) + unless @todo.pending_successors.empty? + pending_count = @todo.pending_successors.length + title = "Has #{pluralize(pending_count, 'pending action')}: #{@todo.pending_successors.map(&:description).join(', ')}" + image_tag( 'successor_off.png', :width=>'10', :height=>'16', :border=>'0', :title => title ) end end