Skip to content

Commit

Permalink
Enh #3765: Change title on bug details page to bug summary line.
Browse files Browse the repository at this point in the history
M bug_update_advanced_page.php
M bug_update_page.php
M bug_view_advanced_page.php
M bug_view_page.php
M print_bug_page.php
M core/html_api.php
- Changed the page title to include the currently open issue.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2560 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed May 23, 2004
1 parent ac52240 commit 0a4b813
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions bug_update_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_advanced_page.php,v 1.66 2004-05-17 11:39:06 vboctor Exp $
# $Id: bug_update_advanced_page.php,v 1.67 2004-05-23 14:13:41 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -37,7 +37,7 @@

$t_bug = bug_prepare_edit( bug_get( $f_bug_id, true ) );
?>
<?php html_page_top1() ?>
<?php html_page_top1( $t_bug->summary ) ?>
<?php html_page_top2() ?>

<br />
Expand Down
4 changes: 2 additions & 2 deletions bug_update_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_page.php,v 1.68 2004-05-17 11:39:06 vboctor Exp $
# $Id: bug_update_page.php,v 1.69 2004-05-23 14:13:47 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -37,7 +37,7 @@

$t_bug = bug_prepare_edit( bug_get( $f_bug_id, true ) );
?>
<?php html_page_top1() ?>
<?php html_page_top1( $t_bug->summary ) ?>
<?php html_page_top2() ?>

<br />
Expand Down
4 changes: 2 additions & 2 deletions bug_view_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_view_advanced_page.php,v 1.52 2004-05-17 11:39:06 vboctor Exp $
# $Id: bug_view_advanced_page.php,v 1.53 2004-05-23 14:13:47 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -35,7 +35,7 @@

compress_enable();

html_page_top1();
html_page_top1( $t_bug->summary );
html_page_top2();
?>

Expand Down
4 changes: 2 additions & 2 deletions bug_view_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_view_page.php,v 1.55 2004-05-17 11:39:06 vboctor Exp $
# $Id: bug_view_page.php,v 1.56 2004-05-23 14:13:47 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -36,7 +36,7 @@

compress_enable();
?>
<?php html_page_top1() ?>
<?php html_page_top1( $t_bug->summary ) ?>
<?php html_page_top2() ?>

<br />
Expand Down
16 changes: 11 additions & 5 deletions core/html_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: html_api.php,v 1.96 2004-05-18 04:29:21 int2str Exp $
# $Id: html_api.php,v 1.97 2004-05-23 14:13:47 vboctor Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -57,13 +57,13 @@
# --------------------
# Print the part of the page that comes before meta redirect tags should
# be inserted
function html_page_top1() {
function html_page_top1( $p_page_title = null ) {
html_begin();
html_head_begin();
html_css();
html_content_type();
include( config_get( 'meta_include_file' ) );
html_title();
html_title( $p_page_title );
}

# --------------------
Expand Down Expand Up @@ -156,9 +156,15 @@ function html_content_type() {

# --------------------
# (4) Print the window title
function html_title() {
function html_title( $p_page_title = null ) {
$t_title = config_get( 'window_title' );
echo "\t", '<title>', string_display( $t_title ), '</title>', "\n";
echo "\t", '<title>';
if ( $p_page_title === null ) {
string_display( $t_title );
} else {
echo $p_page_title . ' - ' . string_display( $t_title );
}
echo '</title>', "\n";
}

# --------------------
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -19,6 +19,7 @@ Mantis ChangeLog
* Enh #3690: Request for directly setting reminders private.
* Enh #3713: Allow users to set severity levels along with email preferences.
* Enh #3735: New CSS class for HTML Form Buttons
* Enh #3765: Change title on bug details page to bug summary line.
* Enh #3801: Add "myself" meta filter options.
* Enh #3808: Ability to sponsor (fund) a bug or feature request.
* Enh #3811: Allow private flag to be unset on resolved bugs.
Expand Down
4 changes: 2 additions & 2 deletions print_bug_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_bug_page.php,v 1.45 2004-03-05 01:26:16 jlatour Exp $
# $Id: print_bug_page.php,v 1.46 2004-05-23 14:13:47 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -53,7 +53,7 @@
$v2_steps_to_reproduce = string_display_links( $v2_steps_to_reproduce );
$v2_additional_information = string_display_links( $v2_additional_information );
?>
<?php html_page_top1() ?>
<?php html_page_top1( $v_summary ) ?>
<?php
html_head_end();
html_body_begin();
Expand Down

0 comments on commit 0a4b813

Please sign in to comment.