Skip to content

Commit

Permalink
Enhance layout of "View Issue Details" page
Browse files Browse the repository at this point in the history
Fixes #22501
  • Loading branch information
atrol committed Mar 9, 2017
1 parent f600b2f commit 9ec50f8
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions bug_view_inc.php
Expand Up @@ -363,33 +363,25 @@
echo '<tr class="hidden"></tr>';
}


#
# Reporter
# Reporter, Handler, Due Date
#

if( $t_show_reporter ) {
if( $t_show_reporter || $t_show_handler || $t_show_due_date ) {
echo '<tr>';

$t_spacer = 4;
$t_spacer = 0;

# Reporter
echo '<th class="bug-reporter category">', lang_get( 'reporter' ), '</th>';
echo '<td class="bug-reporter">';
print_user_with_subject( $t_bug->reporter_id, $t_bug_id );
echo '</td>';
echo '<td colspan="', $t_spacer, '">&#160;</td>';

echo '</tr>';
}

#
# Handler, Due Date
#

if( $t_show_handler || $t_show_due_date ) {
echo '<tr>';

$t_spacer = 2;
if( $t_show_reporter ) {
echo '<th class="bug-reporter category">', lang_get( 'reporter' ), '</th>';
echo '<td class="bug-reporter">';
print_user_with_subject( $t_bug->reporter_id, $t_bug_id );
echo '</td>';
} else {
$t_spacer += 2;
}

# Handler
if( $t_show_handler ) {
Expand All @@ -414,7 +406,10 @@
$t_spacer += 2;
}

echo '<td colspan="', $t_spacer, '">&#160;</td>';
if( $t_spacer > 0 ) {
echo '<td colspan="', $t_spacer, '">&#160;</td>';
}

echo '</tr>';
}

Expand Down

0 comments on commit 9ec50f8

Please sign in to comment.