Also fixed#486 (Inline edit of project title (from individual project page) fails). Thanks to James Kebinger for reporting the issue and for the patch.
N.B. This check-in requires the REMOVAL of one line from your environment.rb file. The line to be removed reads "require 'url_friendly_name'"
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@523 a4c988fc-2ded-0310-b66e-134b36920a42
Date field shortcuts:
(t) today
(-) or (<) previous day
(+) or (>) next day
([) previous week; (]) next week
({) previous month
(}) next month
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@519 a4c988fc-2ded-0310-b66e-134b36920a42
arguably just another representation of the same resources, so it seems to fit
the RESTful Rails paradigm to use an extension (.m) to switch on in the
respond_to stanza.
I needed some hackery to make this work. See my note in todos_controller for
a full explanation.
I also added a route to get to the mobile view by using 'domain.com/m'
Created some selenium tests for the mobile view, too.
In optimizing the data access for the mobile view, I ran into "a bug in rails
pagination":http://dev.rubyonrails.org/ticket/7885" and integrated a nice
pagination plugin from the Err the Blog guys
("will_paginate":http://errtheblog.com/post/929) to work around the issue.
NOTE that this changeset includes a new line in environment.rb.tmpl (at
the bottom). Be sure to copy this into your environment.rb file.
These changes fix#489 (cannot edit action using mobile interface).
Thanks for the bug report, lrbalt!
In the name of consistency, I made the argument to the block for all
respond_to calls 'format' (instead of the formerly cool 'wants').
Lastly, I added a link to the project's new contribute page to the footer of
the main web UI. Help us join the Mac on Intel world. :-)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@517 a4c988fc-2ded-0310-b66e-134b36920a42
There's now a simple way to switch between forms rather than showing them both at once.
Plus, Tracks will cookie you when you switch forms so it remembers the last type of
authentication you used when you return.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@504 a4c988fc-2ded-0310-b66e-134b36920a42
Thanks to James Kebinger for his work sussing out compatibility issues with Rails 1.2.3 and the memory_test_fix plugin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@499 a4c988fc-2ded-0310-b66e-134b36920a42
Refactor out some finds to use automatically scopred finds on assication extensions.
Refactor out some error handling for very unusual cases.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@486 a4c988fc-2ded-0310-b66e-134b36920a42
Interested in feedback on this... Which is higher value: the simplicity of only showing the number of actions or the utility of showing the number of notes as well?
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@485 a4c988fc-2ded-0310-b66e-134b36920a42
* On first user signup, the user no longer needs to login and after signing up. They are automatically logged in.
* The Projects page was showing the name of the last project listed in the new project form. It is now appropriately blank.
* When trying to create a new action, an error was occurring trying to update tags if the action failed to save. We now only try to update tags if the action saved. I wonder if we should be using some sort of ActiveRecord transaction here. If anyone knows about this, please contact me.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@481 a4c988fc-2ded-0310-b66e-134b36920a42
this context will be pre-populated when creating an action from the project's page.
When creating an action from the home page, the context will be auto-selected when
the project is selected if the context field has not yet been entered.
This implementation is a combination of the great patch submitted by James Kebinger
(thanks James!) and some of my modifications and additions.
Don't forget to rake db:migrate.
Fixes#162, originally suggested by Rolf one year ago!
Also in this commit:
* Tweaked selenium tags test
* Tweaked formatting of next/previous project HTML
* Implemented Null Object pattern for context to support
a Project having no default context
* Removed tickler.rhtml, no longer in use
* applying z-index values to project sortable list items (otherwise context
autocomplete was appearing below next list item)
* Swapped order of project and context in new action form (setting default context
makes more sense this way)
* Removed CSS width of for form elements, so form could be used in content area
without being too narrow
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@480 a4c988fc-2ded-0310-b66e-134b36920a42
One thing I forgot to mention in the last commit is that the changes break feed links. If people think it's important to maintain them, we can use routes to accomplish that...
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@477 a4c988fc-2ded-0310-b66e-134b36920a42
I also ran rcov on unit tests and added tests to improve test coverage, uncovering a couple of bugs along the way.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@476 a4c988fc-2ded-0310-b66e-134b36920a42
"I kick off a lot of small projects, and I often want to add actions right when I create the project. This is a simple tweak that provides a check box that allows you to immediately go to the project page after creating a new project."
Thanks, Trevor. Sorry it took so long!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@474 a4c988fc-2ded-0310-b66e-134b36920a42
* Adds keyboard shortcuts to the passed in date field:
*
* 't' input today's date
* '+' or '=' increment the date in the field by one day
* '-' decrement the date in the field by one day
*
* If the calendar is visible, the shortcuts play nicely with it. If not,
* they still work properly. Pressing '+' when no date is entered in the
* field will set the date to tomorrow, and likewise '-' with no date
* entered will set the date to yesterday.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@473 a4c988fc-2ded-0310-b66e-134b36920a42