Permalink
Browse files

Enhance layout of "View Issue Details" page

Fixes #22501
  • Loading branch information...
atrol committed Mar 6, 2017
1 parent f600b2f commit 9ec50f81727f13fcf85ee4959a53d8d658a06ee3
Showing with 16 additions and 21 deletions.
  1. +16 −21 bug_view_inc.php
View
@@ -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 ) {
@@ -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>';
}

0 comments on commit 9ec50f8

Please sign in to comment.