mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-04 03:50:17 +01:00
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:
parent
49296539ee
commit
85885f9b9b
7 changed files with 79 additions and 3 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue