Rename Task to Task_Definition to avoid confusion with Task_Model.

Order the finished tasks by update time in the task list.
This commit is contained in:
Bharat Mediratta
2009-01-16 05:01:22 +00:00
parent 72fa5736ff
commit 622da5f3cd
3 changed files with 8 additions and 6 deletions

View File

@@ -59,8 +59,10 @@ class Admin_Maintenance_Controller extends Admin_Controller {
$view = new Admin_View("admin.html");
$view->content = new View("admin_maintenance.html");
$view->content->task_definitions = $this->_get_task_definitions();
$view->content->running_tasks = ORM::factory("task")->where("done", 0)->find_all();
$view->content->finished_tasks = ORM::factory("task")->where("done", 1)->find_all();
$view->content->running_tasks =
ORM::factory("task")->where("done", 0)->orderby("updated", "desc")->find_all();
$view->content->finished_tasks =
ORM::factory("task")->where("done", 1)->orderby("updated", "desc")->find_all();
$view->content->csrf = access::csrf_token();
print $view;
}