Differential D8693 Diff 20620 src/applications/differential/render/DifferentialChangesetHTMLRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetHTMLRenderer.php
Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | return $this->wrapChangeInTable( | ||||
'td', | 'td', | ||||
array( | array( | ||||
'class' => 'differential-shield', | 'class' => 'differential-shield', | ||||
'colspan' => 6, | 'colspan' => 6, | ||||
), | ), | ||||
$content))); | $content))); | ||||
} | } | ||||
private function renderColgroup() { | |||||
return phutil_tag('colgroup', array(), array( | |||||
phutil_tag('col', array('class' => 'num')), | |||||
phutil_tag('col', array('class' => 'left')), | |||||
phutil_tag('col', array('class' => 'num')), | |||||
phutil_tag('col', array('class' => 'copy')), | |||||
phutil_tag('col', array('class' => 'right')), | |||||
phutil_tag('col', array('class' => 'cov')), | |||||
)); | |||||
} | |||||
protected function wrapChangeInTable($content) { | protected function wrapChangeInTable($content) { | ||||
if (!$content) { | if (!$content) { | ||||
return null; | return null; | ||||
} | } | ||||
return javelin_tag( | return javelin_tag( | ||||
'table', | 'table', | ||||
array( | array( | ||||
'class' => 'differential-diff remarkup-code PhabricatorMonospaced', | 'class' => 'differential-diff remarkup-code PhabricatorMonospaced', | ||||
'sigil' => 'differential-diff', | 'sigil' => 'differential-diff', | ||||
), | ), | ||||
$content); | array( | ||||
$this->renderColgroup(), | |||||
$content, | |||||
)); | |||||
} | } | ||||
protected function renderInlineComment( | protected function renderInlineComment( | ||||
PhabricatorInlineCommentInterface $comment, | PhabricatorInlineCommentInterface $comment, | ||||
$on_right = false) { | $on_right = false) { | ||||
return $this->buildInlineComment($comment, $on_right)->render(); | return $this->buildInlineComment($comment, $on_right)->render(); | ||||
} | } | ||||
Show All 21 Lines |