mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 16:44:09 +01:00
Use Todos::Calendar in the view
This commit is contained in:
parent
fb71441436
commit
6b8e745234
3 changed files with 11 additions and 20 deletions
|
|
@ -784,17 +784,8 @@ class TodosController < ApplicationController
|
|||
@source_view = params['_source_view'] || 'calendar'
|
||||
@page_title = t('todos.calendar_page_title')
|
||||
|
||||
calendar = Todos::Calendar.new(current_user)
|
||||
@projects = calendar.projects
|
||||
|
||||
due_this_month_date = Time.zone.now.end_of_month
|
||||
included_tables = Todo::DEFAULT_INCLUDES
|
||||
|
||||
@due_today = calendar.due_today
|
||||
@due_this_week = calendar.due_this_week
|
||||
@due_next_week = calendar.due_next_week
|
||||
@due_this_month = calendar.due_this_month
|
||||
@due_after_this_month = calendar.due_after_this_month
|
||||
@calendar = Todos::Calendar.new(current_user)
|
||||
@projects = @calendar.projects
|
||||
@count = current_user.todos.not_completed.are_due.count
|
||||
|
||||
respond_to do |format|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue