Skip to content

Commit

Permalink
tweak to submit for 1466 to center prev/next buttons
Browse files Browse the repository at this point in the history
supress prev/next if bug id not in the saved cookie


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2996 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Sep 26, 2004
1 parent b36fcf8 commit 1c13c7e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 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.62 2004-09-25 13:34:25 prichards Exp $
# $Id: bug_view_advanced_page.php,v 1.63 2004-09-26 01:57:25 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -46,7 +46,7 @@
<tr>

<!-- Title -->
<td class="form-title" colspan="4">
<td class="form-title" colspan="3">
<?php echo lang_get( 'viewing_bug_advanced_details_title' ) ?>

<!-- Jump to Bugnotes -->
Expand All @@ -65,14 +65,16 @@
?>
<!-- prev/next links -->
<?php if( $t_bugslist = gpc_get_cookie( 'bugslist', false ) ) { ?>
<span class="small">
<td class="center"><span class="small">
<?php
$t_bugslist = explode( ',', $t_bugslist );
$t_index = array_search( $f_bug_id, $t_bugslist );
if( isset( $t_bugslist[$t_index-1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index-1], '<<' );
if( isset( $t_bugslist[$t_index+1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index+1], '>>' );
if( false != $t_index ) {
if( isset( $t_bugslist[$t_index-1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index-1], '<<' );
if( isset( $t_bugslist[$t_index+1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index+1], '>>' );
}
?>
</span>
</span></td>
<?php } ?>
</td>

Expand Down
14 changes: 8 additions & 6 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.66 2004-09-25 13:34:25 prichards Exp $
# $Id: bug_view_page.php,v 1.67 2004-09-26 01:57:26 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -46,7 +46,7 @@
<tr>

<!-- Title -->
<td class="form-title" colspan="4">
<td class="form-title" colspan="3">
<?php echo lang_get( 'viewing_bug_simple_details_title' ) ?>

<!-- Jump to Bugnotes -->
Expand All @@ -65,14 +65,16 @@
?>
<!-- prev/next links -->
<?php if( $t_bugslist = gpc_get_cookie( 'bugslist', false ) ) { ?>
<span class="small">
<td class="center"><span class="small">
<?php
$t_bugslist = explode( ',', $t_bugslist );
$t_index = array_search( $f_bug_id, $t_bugslist );
if( isset( $t_bugslist[$t_index-1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index-1], '<<' );
if( isset( $t_bugslist[$t_index+1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index+1], '>>' );
if( false != $t_index ) {
if( isset( $t_bugslist[$t_index-1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index-1], '<<' );
if( isset( $t_bugslist[$t_index+1] ) ) print_bracket_link( 'bug_view_page.php?bug_id='.$t_bugslist[$t_index+1], '>>' );
}
?>
</span>
</span></td>
<?php } ?>
</td>

Expand Down

0 comments on commit 1c13c7e

Please sign in to comment.