Differential D20188 Diff 48216 src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | for ($ii = $range_start; $ii < $range_start + $range_len; $ii++) { | ||||
} | } | ||||
} | } | ||||
// NOTE: This is a unicode zero-width space, which we use as a hint when | // NOTE: This is a unicode zero-width space, which we use as a hint when | ||||
// intercepting 'copy' events to make sure sensible text ends up on the | // intercepting 'copy' events to make sure sensible text ends up on the | ||||
// clipboard. See the 'phabricator-oncopy' behavior. | // clipboard. See the 'phabricator-oncopy' behavior. | ||||
$zero_space = "\xE2\x80\x8B"; | $zero_space = "\xE2\x80\x8B"; | ||||
$old_number = phutil_tag( | |||||
'td', | |||||
array( | |||||
'id' => $o_id, | |||||
'class' => $o_classes.' n', | |||||
'data-n' => $o_num, | |||||
)); | |||||
$new_number = phutil_tag( | |||||
'td', | |||||
array( | |||||
'id' => $n_id, | |||||
'class' => $n_classes.' n', | |||||
'data-n' => $n_num, | |||||
)); | |||||
$html[] = phutil_tag('tr', array(), array( | $html[] = phutil_tag('tr', array(), array( | ||||
phutil_tag('th', array('id' => $o_id, 'class' => $o_classes), $o_num), | $old_number, | ||||
phutil_tag('td', array('class' => $o_classes), $o_text), | phutil_tag('td', array('class' => $o_classes), $o_text), | ||||
phutil_tag('th', array('id' => $n_id, 'class' => $n_classes), $n_num), | $new_number, | ||||
$n_copy, | $n_copy, | ||||
phutil_tag( | phutil_tag( | ||||
'td', | 'td', | ||||
array('class' => $n_classes, 'colspan' => $n_colspan), | array('class' => $n_classes, 'colspan' => $n_colspan), | ||||
array( | array( | ||||
phutil_tag('span', array('class' => 'zwsp'), $zero_space), | phutil_tag('span', array('class' => 'zwsp'), $zero_space), | ||||
$n_text, | $n_text, | ||||
)), | )), | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |