mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
make code of completed projects and completed recurring actions more similar
This commit is contained in:
parent
660238d2cf
commit
296b8135a1
2 changed files with 7 additions and 5 deletions
|
|
@ -26,12 +26,14 @@ class RecurringTodosController < ApplicationController
|
|||
end
|
||||
|
||||
def done
|
||||
@page_title = t('todos.completed_recurring_actions_title')
|
||||
@source_view = params['_source_view'] || 'recurring_todo'
|
||||
@page_title = t('todos.completed_recurring_actions_title')
|
||||
|
||||
items_per_page = 20
|
||||
page = params[:page] || 1
|
||||
@completed_recurring_todos = current_user.recurring_todos.completed.paginate :page => params[:page], :per_page => items_per_page
|
||||
@completed_recurring_todos = current_user.recurring_todos.completed.paginate :page => page, :per_page => items_per_page
|
||||
@total = @count = current_user.recurring_todos.completed.count
|
||||
|
||||
@range_low = (page.to_i-1) * items_per_page + 1
|
||||
@range_high = @range_low + @completed_recurring_todos.size - 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue