1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-22 19:49:02 +01:00

Fix displaying of inlines related both to visible and hidden diff

Summary: I tried also filling the column by empty space but this looks better.

Test Plan: Displayed a comment both with visible and hidden inlines.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1216

Differential Revision: https://secure.phabricator.com/D2789
This commit is contained in:
vrana 2012-06-18 18:05:06 -07:00
parent c762050b7c
commit 8a8a48cc8f

View file

@ -78,11 +78,9 @@ final class PhabricatorInlineSummaryView extends AphrontView {
}
}
$cols = $has_where ? 3 : 2;
$rows[] =
'<tr>'.
'<th colspan="'.$cols.'">'.
'<th colspan="3">'.
phutil_escape_html($group).
'</th>'.
'</tr>';
@ -123,6 +121,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
$where = idx($item, 'where');
$colspan = ($has_where ? '' : ' colspan="2"');
$rows[] =
'<tr>'.
'<td class="inline-line-number">'.$lines.'</td>'.
@ -131,7 +130,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
phutil_escape_html($where).
'</td>'
: null).
'<td class="inline-summary-content">'.
'<td class="inline-summary-content"'.$colspan.'>'.
'<div class="phabricator-remarkup">'.
$item['content'].
'</div>'.