From e37faa0008df38088a55932786955e68ee1f955f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 9 Mar 2009 07:28:19 +0000 Subject: More tasks cleanup. Don't join through to the users table; that won't work in embedded mode. Instead, add Tasks_Model::owner() that calls user::lookup() and refer to the object directly in the view. Add Admin_Maintenance:remove_finished_tasks() so that we can easily do old task cleanup. Hide Running / Finished sections if there aren't any running or finished tasks. --- core/views/admin_maintenance.html.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'core/views') diff --git a/core/views/admin_maintenance.html.php b/core/views/admin_maintenance.html.php index 2570dcee..e3afb9f5 100644 --- a/core/views/admin_maintenance.html.php +++ b/core/views/admin_maintenance.html.php @@ -38,6 +38,7 @@ + count()): ?>

@@ -86,7 +87,7 @@ status ?> - user_name ?> + owner()->name ?> state == "stalled"): ?> @@ -102,9 +103,12 @@
+ + count()): ?>

+ "> @@ -148,7 +152,7 @@ status ?>
- user_name ?> + owner()->name ?> done): ?> @@ -168,4 +172,5 @@
+ -- cgit v1.2.3