Add next-previous links to project detail pages. Closes #379

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@470 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-03-06 13:18:31 +00:00
parent 49296539ee
commit 85885f9b9b
7 changed files with 79 additions and 3 deletions

View file

@ -26,6 +26,8 @@ class ProjectsController < ApplicationController
@deferred = @project.deferred_todos
@done = @project.done_todos
@count = @not_done.size
@next_project = @user.projects.next_from(@project)
@previous_project = @user.projects.previous_from(@project)
end
# Example XML usage: curl -H 'Accept: application/xml' -H 'Content-Type: application/xml'