Added pagination to task archiv.
This commit is contained in:
parent
f018db5b15
commit
759217763e
3 changed files with 4 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ class TasksController < ApplicationController
|
|||
|
||||
# Shows all tasks, which are already done
|
||||
def archive
|
||||
@tasks = Task.done
|
||||
@tasks = Task.done.paginate :page => params[:page], :per_page => 30
|
||||
end
|
||||
|
||||
# shows workgroup (normal group) to edit weekly_tasks_template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue