From d89ad2f42bf7ad8cc300db966d18e1e7735555ce Mon Sep 17 00:00:00 2001 From: bsag Date: Mon, 14 Feb 2005 11:26:39 +0000 Subject: [PATCH] Somewhere along the line, I broke editing of actions on the context/show/id pages. Fixed by making sure that the edit button uses the todo controller and edit action. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@24 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/context/_not_done.rhtml | 2 +- tracks/doc/CHANGENOTES.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tracks/app/views/context/_not_done.rhtml b/tracks/app/views/context/_not_done.rhtml index 2b45e48d..7409a2b9 100644 --- a/tracks/app/views/context/_not_done.rhtml +++ b/tracks/app/views/context/_not_done.rhtml @@ -2,7 +2,7 @@ <%= check_box( "item", "done", "onclick" => "document.location.href='/todo/toggle_check/#{@item.id}'" ) %> - <%= link_to( $edit_img, { :action => "edit", :id => @item.id }, :title => "Edit item" ) + " " + link_to($delete_img, { :controller => "todo", :action => "destroy", :id => @item.id }, :title => "Delete item", :confirm => "Are you sure you want to delete this entry: #{@item.description}" ) + " " %> + <%= link_to( $edit_img, { :controller => "todo", :action => "edit", :id => @item.id }, :title => "Edit item" ) + " " + link_to($delete_img, { :controller => "todo", :action => "destroy", :id => @item.id }, :title => "Delete item", :confirm => "Are you sure you want to delete this entry: #{@item.description}" ) + " " %> <%= due_date( @item.due ) %> <%= @item.description %> <% if @item.project_id %> diff --git a/tracks/doc/CHANGENOTES.txt b/tracks/doc/CHANGENOTES.txt index 4eb4d952..dcacff92 100644 --- a/tracks/doc/CHANGENOTES.txt +++ b/tracks/doc/CHANGENOTES.txt @@ -19,6 +19,7 @@ Project wiki: 10. Added a new path:, base: setting in settings.yml. This is used in constructing URLs in standard.rhtml and other places for the javascripts and stylesheets. You need to specify it in the format, http://my.domain.tld/subdir/tracks or whatever the full URL is. This should help people who put Tracks in a subdirectory. +11. Added some rudimentary sorting of completed items. They are now sorted in to done today, done in the last 7 days and done in the last 31 days. At the bottom of completed.rhtml, there's a link to completed_archive.rhtml, which shows archived items older than 31 days. ## Version 1.01