diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 0fb13ef685..9502dc3d8d 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: config_defaults_inc.php,v 1.191 2004-08-06 17:17:05 jlatour Exp $ + # $Id: config_defaults_inc.php,v 1.192 2004-08-07 16:47:50 jlatour Exp $ # -------------------------------------------------------- @@ -1274,6 +1274,9 @@ 'recent_mod' => '5', 'monitored' => '6' ); + + # Toggle whether 'My View' boxes are shown in a fixed position (i.e. adjacent boxes start at the same vertical position) + $g_my_view_boxes_fixed_position = ON; # Default page after Login or Set Project $g_default_home_page = 'my_view_page.php'; diff --git a/doc/ChangeLog b/doc/ChangeLog index 9f0b56276d..b648b01789 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -2,6 +2,7 @@ Mantis ChangeLog 2004.08.xx - 0.19.0xx +- 0004279: [bugtracker] My View makes bad use of available space (tazza70) - 0003689: [bugtracker] index.php is sending wrong HTTP header if not logged in (jlatour) - 0004193: [bugtracker] Broaden the ldap features to work with Active Directory (alf) - 0004133: [filters] "Summary stats are links to filters for view_all_bugs" feature is broken (jlatour) diff --git a/my_view_page.php b/my_view_page.php index eb9d087b16..a6a6de602c 100644 --- a/my_view_page.php +++ b/my_view_page.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: my_view_page.php,v 1.7 2004-07-20 15:51:50 vboctor Exp $ + # $Id: my_view_page.php,v 1.8 2004-08-07 16:47:50 jlatour Exp $ # -------------------------------------------------------- ?> '; - include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'my_view_inc.php' ); - echo ''; - } elseif ($t_counter%2 == 0) { - echo ''; - include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'my_view_inc.php' ); - echo ''; + + # check the style of displaying boxes - fixed (ie. each box in a separate table cell) or not + if ( ON == $t_boxes_position ) { + # for even box number start new row and column + if ( 1 == $t_counter%2 ) { + echo ''; + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'my_view_inc.php' ); + echo ''; + } + + # for odd box number only start new column + elseif ( 0 == $t_counter%2 ) { + echo ''; + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'my_view_inc.php' ); + echo ''; + } + + # for odd number of box display one empty table cell in second column + if ( ( $t_counter == $t_number_of_boxes ) && 1 == $t_counter%2 ) { + echo ''; + } } - if ( ($t_counter == $t_number_of_boxes) && $t_counter%2 == 1) { - echo ''; + else if ( OFF == $t_boxes_position ) { + # start new table row and column for first box + if ( 1 == $t_counter ) { + echo ''; + } + + # start new table column for the second half of boxes + if ( $t_counter == ceil ($t_number_of_boxes/2) + 1 ) { + echo ''; + } + + # display the required box + include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'my_view_inc.php' ); + echo '
'; + + # close the first column for first half of boxes + if ( $t_counter == ceil ($t_number_of_boxes/2) ) { + echo ''; + } + + # close the table row after all of the boxes + if ( $t_counter == $t_number_of_boxes ) { + echo ''; + } } } } + ?>