View Issue Details

IDProjectCategoryView StatusLast Update
0006966mantisbtbugtrackerpublic2008-07-28 17:23
Reporterlanwin Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status feedbackResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0006966: Project list page
Description

We are useing Mantis only internaly to track bugs with the departments. In that case we dont need the news page after login. But for us it was practical to login to mantis, see project list, klick on an project and see view_all_bug_page.php page for this project. This is easyer to navigte for noob's :-)

Can you add a /mantis/project_list.php and a way to replace the startpage with this.

TagsNo tags attached.

Activities

thraxisp

thraxisp

2006-04-20 11:44

reporter   ~0012650

The default page after Login or Set Project is set by $g_default_home_page. You can add this to your config_inc.php file.

lanwin

lanwin

2006-04-20 11:45

reporter   ~0012651

Yes i know. But there is now page that lists the projects.

thraxisp

thraxisp

2006-04-20 11:56

reporter   ~0012652

You could set $g_show_project_menu_bar = ON; to get a secondary menu bar with all of the projects listed at the top of each page.

lanwin

lanwin

2006-04-20 12:18

reporter   ~0012653

Yes, but thats not very handy. We have a lot of projects. Then this bar is very big und some users using 800x600.

vboctor

vboctor

2006-04-21 03:05

manager   ~0012654

You can easily develop the page you want and change $g_default_home_page point to it. This way you achieve what you need and still have an easy upgrade path. Once you implement it, submit it here, if we like it and think it is generic enough, then we may include it in Mantis distribution.

lanwin

lanwin

2006-04-21 11:49

reporter   ~0012657

Here is the code for this page:

http://mantis.pastebin.com/673392

@vboctor: on my system the subproject link work. Can you reconfirm it?

Blue Ninja

Blue Ninja

2006-11-18 11:40

reporter   ~0013737

Last edited: 2006-11-18 12:40

This is a great idea - thanks for the tip! I had added a new bar on the top of my Mantis installation ( http://www.blueninjasoftware.com/tracker/ ) that would clarify the selected project, as well as show its description (Previously, there was no way I could see for a user to get the project description).

Your submission here is a great way to help users find the project they're looking for, and gives me a good place to link back to the project's main page on my site to get the longer description, download links, etc. You've got my vote to make it an integral part of Mantis!

deboutv

deboutv

2007-06-06 06:52

reporter   ~0014683

Maybe the following link could help you:

http://deboutv.free.fr/mantis/plugin.php?plugin=hierarchy

giallu

giallu

2008-02-24 18:52

reporter   ~0017180

can anyone attach here the source code for the project list page (the pastebin link expired...)

grangeway

grangeway

2008-07-28 16:25

reporter   ~0018874

Lanwin,

Do you still have the source code for this?

Blue Ninja

Blue Ninja

2008-07-28 17:23

reporter   ~0018880

I do - I'll attach the code I've been using here now.

2008-07-28 17:23

 

projects_list_page.php (3,463 bytes)
<?php
	require_once( 'core.php' );

	$t_core_path = config_get( 'core_path' );

	require_once( $t_core_path . 'icon_api.php' );
?>
<?php
	$f_sort	= gpc_get_string( 'sort', 'name' );
	$f_dir	= gpc_get_string( 'dir', 'ASC' );

	if ( 'ASC' == $f_dir ) {
		$t_direction = ASC;
	} else {
		$t_direction = DESC;
	}

?>
<?php html_page_top1( lang_get( 'projects_title' ) ) ?>
<?php html_page_top2() ?>

<br />
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="5">
		<?php echo lang_get( 'projects_title' ) ?>
	</td>
</tr>
<tr class="row-category">
	<td width="20%">
		<?php print_manage_project_sort_link( 'projects_list_page.php', lang_get( 'name' ), 'name', $t_direction, $f_sort ) ?>
		<?php print_sort_icon( $t_direction, $f_sort, 'name' ) ?>
	</td>
	<td width="10%">
		<?php print_manage_project_sort_link( 'projects_list_page.php', lang_get( 'status' ), 'status', $t_direction, $f_sort ) ?>
		<?php print_sort_icon( $t_direction, $f_sort, 'status' ) ?>
	</td>
	<td width="10%">
		<?php print_manage_project_sort_link( 'projects_list_page.php', lang_get( 'view_status' ), 'view_state', $t_direction, $f_sort ) ?>
		<?php print_sort_icon( $t_direction, $f_sort, 'view_state' ) ?>
	</td>
	<td width="50%">
		<?php print_manage_project_sort_link( 'projects_list_page.php', lang_get( 'description' ), 'description', $t_direction, $f_sort ) ?>
		<?php print_sort_icon( $t_direction, $f_sort, 'description' ) ?>
	</td>
</tr>
<?php
	$t_projects = current_user_get_accessible_projects();
	$t_full_projects = array();
	foreach ( $t_projects as $t_project_id ) {
		$t_full_projects[] = project_get_row( $t_project_id );
	}
	$t_projects = multi_sort( $t_full_projects, $f_sort, $t_direction );
	$t_stack 	= array( $t_projects );

	while ( 0 < count( $t_stack ) ) {
		$t_projects   = array_shift( $t_stack );

		if ( 0 == count( $t_projects ) ) {
			continue;
		}

		$t_project 					= array_shift( $t_projects );
		$t_project_id 			= $t_project['id'];
		$t_project_id_long 	= $t_project['id_long'];		
		$t_level      			= count( $t_stack );

		if(!$t_project_id_long) {$t_project_id_long = $t_project_id;}

?>
<tr <?php echo helper_alternate_class() ?>>
	<td>
		<a href="set_project.php?project_id=<?php echo $t_project_id_long ?>&ref=view_all_bug_page.php"><?php echo str_repeat( "&raquo; ", $t_level ) . string_display( $t_project['name'] ) ?></a>
	</td>
	<td>
		<?php echo get_enum_element( 'project_status', $t_project['status'] ) ?>
	</td>
	<td>
		<?php echo get_enum_element( 'project_view_state', $t_project['view_state'] ) ?>
	</td>
	<td valign="top">
		<?php echo string_display_links( $t_project['description'] ) ?>
	</td>
</tr>
<?php

		$t_subprojects = project_hierarchy_get_subprojects( $t_project_id, true );

		if ( 0 < count( $t_projects ) || 0 < count( $t_subprojects ) ) {
			array_unshift( $t_stack, $t_projects );
		}

		if ( 0 < count( $t_subprojects ) ) {
            $t_full_projects = array();
		    foreach ( $t_subprojects as $t_subproject_id ) {
		    				$t_row = project_get_row( $t_subproject_id );
		    				$t_row['id_long'] = $t_project_id_long . ";" . $t_subproject_id;
                $t_full_projects[] = $t_row;
            }
			$t_subprojects = multi_sort( $t_full_projects, $f_sort, $t_direction );
			array_unshift( $t_stack, $t_subprojects );
		}
	}
?>
</table>

<?php html_page_bottom1( __FILE__ ) ?>
projects_list_page.php (3,463 bytes)

Issue History

Date Modified Username Field Change
2006-04-20 11:04 lanwin New Issue
2006-04-20 11:44 thraxisp Note Added: 0012650
2006-04-20 11:44 thraxisp Status new => feedback
2006-04-20 11:45 lanwin Note Added: 0012651
2006-04-20 11:56 thraxisp Note Added: 0012652
2006-04-20 12:18 lanwin Note Added: 0012653
2006-04-21 03:05 vboctor Note Added: 0012654
2006-04-21 11:49 lanwin Note Added: 0012657
2006-11-18 11:40 Blue Ninja Note Added: 0013737
2006-11-18 11:40 Blue Ninja Note Edited: 0013737
2006-11-18 12:40 Blue Ninja Note Edited: 0013737
2007-06-06 06:52 deboutv Note Added: 0014683
2008-02-24 18:52 giallu Note Added: 0017180
2008-07-28 16:25 grangeway Note Added: 0018874
2008-07-28 17:23 Blue Ninja Note Added: 0018880
2008-07-28 17:23 Blue Ninja File Added: projects_list_page.php