From 1b179e10c6102a443eb2c4129a8effcf3f8aff97 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sun, 7 Sep 2008 06:58:08 -0700 Subject: [PATCH] Only show defer buttons for uncompleted todos. --- app/views/todos/_todo.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 496b87da..288325a0 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -11,7 +11,7 @@ <%= remote_star_icon %> <%= remote_toggle_checkbox unless source_view_is :deferred %>
- <%= defer_link(1) %> <%= defer_link(7) %> + <% unless @todo.completed? %><%= defer_link(1) %> <%= defer_link(7) %><% end %> <%= 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? %>