Informative alt text for defer buttons

This commit is contained in:
Eric Allen 2008-10-04 13:44:38 -04:00
parent 24c2b57b4a
commit 51b0a2bd9b

View file

@ -281,7 +281,7 @@ module TodosHelper
end
def defer_link(days)
link_to_remote image_tag("defer_#{days}.png"), :url => {:controller => 'todos', :action => 'defer', :id => @todo.id, :days => days, :_source_view => (@source_view.underscore.gsub(/\s+/,'_') rescue "")}
link_to_remote image_tag("defer_#{days}.png", :alt => "Defer #{pluralize(days, 'day')}"), :url => {:controller => 'todos', :action => 'defer', :id => @todo.id, :days => days, :_source_view => (@source_view.underscore.gsub(/\s+/,'_') rescue "")}
end
end