mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
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
This commit is contained in:
parent
60934fb8c8
commit
d89ad2f42b
2 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<tr>
|
||||
<td valign="top">
|
||||
<%= check_box( "item", "done", "onclick" => "document.location.href='/todo/toggle_check/#{@item.id}'" ) %></td>
|
||||
<td valign="top" width="30"><%= 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}" ) + " " %></td>
|
||||
<td valign="top" width="30"><%= 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}" ) + " " %></td>
|
||||
<td valign="top"><%= due_date( @item.due ) %>
|
||||
<%= @item.description %>
|
||||
<% if @item.project_id %>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ Project wiki: <http://www.rousette.org.uk/projects/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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue