Add the scheduler component to the admin maintenance screen.

This commit is contained in:
Tim Almdal
2010-02-01 16:28:52 -08:00
parent 43985ea2fb
commit 48cb5021c6
2 changed files with 10 additions and 0 deletions
@@ -44,6 +44,8 @@ class Admin_Maintenance_Controller extends Admin_Controller {
$view->content->task_definitions = task::get_definitions();
$view->content->running_tasks = ORM::factory("task")
->where("done", "=", 0)->order_by("updated", "DESC")->find_all();
$view->content->schedule_definitions =
module::is_active("scheduler") ? scheduler::get_definitions() : "";
$view->content->finished_tasks = ORM::factory("task")
->where("done", "=", 1)->order_by("updated", "DESC")->find_all();
print $view;