"Blocked tasks" display

Tasks that have missing dependencies will be displayed in a red-ish
colour on the item views and in the full tasks list. Added a "blocked
tasks" mode to the tasks list page.
This commit is contained in:
Emmanuel BENOîT 2012-02-05 22:22:16 +01:00
parent bbf2c4a13c
commit 55438e6661
4 changed files with 97 additions and 10 deletions
includes/t-tasks

View file

@ -15,6 +15,11 @@ class Ctrl_AllTasks
if ( $mode == 'active' ) {
$tasks = Loader::DAO( 'tasks' )->getAllActiveTasks( );
$title = 'Active tasks';
$bTitle = 'Display active tasks';
$bMode = 'blocked';
} elseif ( $mode == 'blocked' ) {
$tasks = Loader::DAO( 'tasks' )->getAllBlockedTasks( );
$title = 'Blocked tasks';
$bTitle = 'Display all tasks';
$bMode = 'all';
} else {