From 439f955d32ca1e50a4743061a22370b309fcce59 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sun, 18 Feb 2007 06:54:49 +0000 Subject: [PATCH] Introduced a user preference for redirecting to an action's project page when you mark it complete. Defaults to false (no change from the current behavior of Tracks.) The idea of this feature is to go to the project detail page so you can see or create the next action. I'm interested in feedback from people who try this out. Remember to rake migrate after you update. Fixes #38. Also, I added a display of the user's formatted date and current local time to the preferences page. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@445 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/preferences/edit.rhtml | 7 ++--- tracks/app/views/preferences/index.rhtml | 5 ++-- tracks/app/views/todos/toggle_check.rjs | 5 +++- ...dd_show_project_on_todo_done_preference.rb | 9 +++++++ tracks/db/schema.rb | 3 ++- tracks/test/fixtures/contexts.yml | 18 +++++++++++++ tracks/test/fixtures/preferences.yml | 2 ++ tracks/test/fixtures/projects.yml | 10 +++++++ tracks/test/fixtures/todos.yml | 26 +++++++++++++++++++ .../test/integration/context_xml_api_test.rb | 2 +- .../selenium/home/mark_todo_complete_3.rsel | 4 +++ .../activate_deferred_todo.rsel | 9 ++++--- tracks/test/unit/preference_test.rb | 5 ++++ 13 files changed, 93 insertions(+), 12 deletions(-) create mode 100644 tracks/db/migrate/028_add_show_project_on_todo_done_preference.rb create mode 100644 tracks/test/selenium/home/mark_todo_complete_3.rsel diff --git a/tracks/app/views/preferences/edit.rhtml b/tracks/app/views/preferences/edit.rhtml index 7dcf3e5d..d307ec14 100644 --- a/tracks/app/views/preferences/edit.rhtml +++ b/tracks/app/views/preferences/edit.rhtml @@ -3,12 +3,13 @@

The preference settings should mostly be self-explanatory, but some hints are included below: