Differential D10585 Diff 25583 src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Show All 19 Lines | if ($hunk_starts) { | ||||
'tr', | 'tr', | ||||
array( | array( | ||||
'sigil' => 'context-target', | 'sigil' => 'context-target', | ||||
), | ), | ||||
phutil_tag( | phutil_tag( | ||||
'td', | 'td', | ||||
array( | array( | ||||
'colspan' => 6, | 'colspan' => 6, | ||||
'class' => 'show-more' | 'class' => 'show-more', | ||||
), | ), | ||||
pht('Context not available.'))); | pht('Context not available.'))); | ||||
} | } | ||||
$html = array(); | $html = array(); | ||||
$old_lines = $this->getOldLines(); | $old_lines = $this->getOldLines(); | ||||
$new_lines = $this->getNewLines(); | $new_lines = $this->getNewLines(); | ||||
▲ Show 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | for ($ii = $range_start; $ii < $range_start + $range_len; $ii++) { | ||||
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), $n_num), | phutil_tag('th', array('id' => $n_id), $n_num), | ||||
$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, | ||||
)), | )), | ||||
$n_cov, | $n_cov, | ||||
)); | )); | ||||
if ($context_not_available && ($ii == $rows - 1)) { | if ($context_not_available && ($ii == $rows - 1)) { | ||||
$html[] = $context_not_available; | $html[] = $context_not_available; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function renderFileChange($old_file = null, | ||||
$new_file = null, | $new_file = null, | ||||
$id = 0, | $id = 0, | ||||
$vs = 0) { | $vs = 0) { | ||||
$old = null; | $old = null; | ||||
if ($old_file) { | if ($old_file) { | ||||
$old = phutil_tag( | $old = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'differential-image-stage' | 'class' => 'differential-image-stage', | ||||
), | ), | ||||
phutil_tag( | phutil_tag( | ||||
'img', | 'img', | ||||
array( | array( | ||||
'src' => $old_file->getBestURI(), | 'src' => $old_file->getBestURI(), | ||||
))); | ))); | ||||
} | } | ||||
$new = null; | $new = null; | ||||
if ($new_file) { | if ($new_file) { | ||||
$new = phutil_tag( | $new = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'differential-image-stage' | 'class' => 'differential-image-stage', | ||||
), | ), | ||||
phutil_tag( | phutil_tag( | ||||
'img', | 'img', | ||||
array( | array( | ||||
'src' => $new_file->getBestURI(), | 'src' => $new_file->getBestURI(), | ||||
))); | ))); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |