View Issue Details

IDProjectCategoryView StatusLast Update
0012163mantisbtadministrationpublic2010-07-13 06:58
Reporterwatergad Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0012163: Mark orphan projects in the manage_proj_page
Description

If you are the manager of the certain subproject you'll never know where is this subproject from.

It would be nice to have an option to turn on orphan subprojects marking, to print projects list like that:
"Someproject [root project name]"
You can have no access but see the root project (and this break the concept), I agree, but if you manage different subprojects from the different projects - it's really chaos, to understand what they belong.

Additional Information

When printing project list you can output smth like that:


// trying to show orphan's parent
$t_main_parent = project_get_main_parent_project($t_project_id); // I made function to get parent
if( $prev_main != $t_main_parent['id'] && $t_main_parent['id'] != $t_project_id )
$t_main_parent_name = "[subproject of " . $t_main_parent['name'] . "] ";
else
$t_main_parent_name = null;
$prev_main = $t_main_parent['id'];
if( $t_level > 0 && is_null($t_main_parent_name) )
$bold_open = $bold_close = "";
else
{
$bold_open = "<h3>"; $bold_close = "</h3>";
}

Then goes HTML output now...
where I've changed:


<a href="manage_proj_edit_page.php?project_id=<?php echo $t_project['id'] ?>"><?php echo $bold_open . str_repeat( "» ", $t_level ) . string_display( $t_main_parent_name . $t_project['name'] ) . $bold_close ?></a>

I'm sure it will become outdated, but I hope it will show the idea (:

TagsNo tags attached.

Activities

There are no notes attached to this issue.