diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 662c3d25..b989b432 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -281,7 +281,7 @@ module TodosHelper end def defer_link(days) - link_to_remote "+#{days}", :url => {:controller => 'todos', :action => 'defer', :id => @todo.id, :days => days, :_source_view => @source_view.underscore.gsub(/\s+/,'_')} + 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 "")} end end diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 8a4f70c2..496b87da 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -11,6 +11,7 @@ <%= remote_star_icon %> <%= remote_toggle_checkbox unless source_view_is :deferred %>
+ <%= defer_link(1) %> <%= defer_link(7) %> <%= date_span -%> <%= h sanitize(todo.description) %> <%= link_to(image_tag("recurring16x16.png"), {:controller => "recurring_todos", :action => "index"}, :class => "recurring_icon") if @todo.from_recurring_todo? %> @@ -18,7 +19,6 @@ <%= 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? %> - <%= defer_link(1) %> <%= defer_link(7) %>