From 7edff301163cb1ecdd400659e94a907331ebfe8b Mon Sep 17 00:00:00 2001 From: Julian Fitzell Date: Mon, 24 Mar 2003 06:26:43 +0000 Subject: [PATCH] Fix #3064: view bug buttons in vertical column Many browsers go to the next line when you start a form. The only way to ensure they're on the same line is to put them each in their own table cell. If we want them to be close together and centered then they need to go into a table inside the main table cell. There may be another way to do this with CSS but I'm not going to spend time on it right now. * bug_view_advanced_page.php: * bug_view_page.php: use align="center" instead of class="center" since the css version doesn't seem to work when the td has a table as its contents? * core/html_api.php: (html_buttons_view_bug_page): put each button in its own td and put the whole thing inside a table. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2125 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- bug_view_advanced_page.php | 4 ++-- bug_view_page.php | 4 ++-- core/html_api.php | 14 +++++++++++++- doc/ChangeLog | 3 ++- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/bug_view_advanced_page.php b/bug_view_advanced_page.php index b3c9b1f2ce..2a50291506 100644 --- a/bug_view_advanced_page.php +++ b/bug_view_advanced_page.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: bug_view_advanced_page.php,v 1.44 2003-03-10 18:14:08 jfitzell Exp $ + # $Id: bug_view_advanced_page.php,v 1.45 2003-03-24 06:26:41 jfitzell Exp $ # -------------------------------------------------------- ?> - + diff --git a/bug_view_page.php b/bug_view_page.php index 7ef944e9cf..2016b7f266 100644 --- a/bug_view_page.php +++ b/bug_view_page.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: bug_view_page.php,v 1.45 2003-03-10 18:14:10 jfitzell Exp $ + # $Id: bug_view_page.php,v 1.46 2003-03-24 06:26:42 jfitzell Exp $ # -------------------------------------------------------- ?> - + diff --git a/core/html_api.php b/core/html_api.php index 9fc0d6a565..c48c0147d9 100644 --- a/core/html_api.php +++ b/core/html_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: html_api.php,v 1.71 2003-03-22 16:30:36 jlatour Exp $ + # $Id: html_api.php,v 1.72 2003-03-24 06:26:42 jfitzell Exp $ # -------------------------------------------------------- ########################################################################### @@ -707,31 +707,43 @@ function html_buttons_view_bug_page( $p_bug_id ) { $t_resolved = config_get( 'bug_resolved_status_threshold' ); $t_status = bug_get_field( $p_bug_id, 'status' ); + echo ''; # CLOSE button + echo ''; # MONITOR/UNMONITOR button + echo ''; # DELETE button + echo '
'; if ( $t_status < $t_resolved ) { # UPDATE button html_button_bug_update( $p_bug_id ); + echo ''; + # ASSIGN button html_button_bug_assign( $p_bug_id ); + echo ''; + # RESOLVE button html_button_bug_resolve( $p_bug_id ); } else { # REOPEN button html_button_bug_reopen( $p_bug_id ); } + echo ''; html_button_bug_close( $p_bug_id ); + echo ''; if ( user_is_monitoring_bug( auth_get_current_user_id(), $p_bug_id ) ) { html_button_bug_unmonitor( $p_bug_id ); } else { html_button_bug_monitor( $p_bug_id ); } + echo ''; html_button_bug_delete( $p_bug_id ); + echo '
'; } ?> diff --git a/doc/ChangeLog b/doc/ChangeLog index 2785c48fa7..e7aa38d7a3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -4,7 +4,8 @@ Mantis ChangeLog * Fix: Improved adherance to the XHTML standard. * Fix #3072: Attached file should be opened up in a new browser window. - + * Fix #3064: view bug buttons in vertical column + 2003.03.22 - 0.18.0a4 * Check whether other forms of compression are enabled before we turn on ob_gzhandler() in our output handler. This should hopefully avoid problems people have had with blank pages resulting from compression problems.