remove the calendar from TodosController

This commit is contained in:
Matt Rogers 2013-04-30 20:35:13 -05:00
parent 83273ac342
commit ebd182695d

View file

@ -1,7 +1,7 @@
class TodosController < ApplicationController
skip_before_filter :login_required, :only => [:index, :calendar, :tag]
prepend_before_filter :login_or_feed_token_required, :only => [:index, :calendar, :tag]
skip_before_filter :login_required, :only => [:index, :tag]
prepend_before_filter :login_or_feed_token_required, :only => [:index, :tag]
append_before_filter :find_and_activate_ready, :only => [:index, :list_deferred]
append_before_filter :set_group_view_by, :only => [:index, :tag, :create, :list_deferred, :destroy, :defer, :update, :toggle_check]
@ -733,27 +733,6 @@ class TodosController < ApplicationController
end
end
def calendar
@source_view = params['_source_view'] || 'calendar'
@page_title = t('todos.calendar_page_title')
@calendar = Todos::Calendar.new(current_user)
@projects = @calendar.projects
@count = current_user.todos.not_completed.are_due.count
respond_to do |format|
format.html
format.ics {
@due_all = current_user.todos.not_completed.are_due.reorder("due")
render :action => 'calendar', :layout => false, :content_type => Mime::ICS
}
format.xml {
@due_all = current_user.todos.not_completed.are_due.reorder("due")
render :xml => @due_all.to_xml( *to_xml_params )
}
end
end
def list_hidden
@hidden = current_user.todos.hidden
respond_to do |format|
@ -1333,4 +1312,4 @@ class TodosController < ApplicationController
return not_done_todos
end
end
end