Differential D17861 Diff 43049 src/infrastructure/diff/view/PHUIDiffOneUpInlineCommentRowScaffold.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffOneUpInlineCommentRowScaffold.php
Show All 16 Lines | public function render() { | ||||
$inline = head($inlines); | $inline = head($inlines); | ||||
$attrs = array( | $attrs = array( | ||||
'colspan' => 3, | 'colspan' => 3, | ||||
'class' => 'right3', | 'class' => 'right3', | ||||
'id' => $inline->getScaffoldCellID(), | 'id' => $inline->getScaffoldCellID(), | ||||
); | ); | ||||
if ($inline->getIsOnRight()) { | |||||
$left_hidden = null; | |||||
$right_hidden = $inline->newHiddenIcon(); | |||||
} else { | |||||
$left_hidden = $inline->newHiddenIcon(); | |||||
$right_hidden = null; | |||||
} | |||||
$cells = array( | $cells = array( | ||||
phutil_tag('th', array()), | phutil_tag('th', array(), $left_hidden), | ||||
phutil_tag('th', array()), | phutil_tag('th', array(), $right_hidden), | ||||
phutil_tag('td', $attrs, $inline), | phutil_tag('td', $attrs, $inline), | ||||
); | ); | ||||
return javelin_tag('tr', $this->getRowAttributes(), $cells); | return javelin_tag('tr', $this->getRowAttributes(), $cells); | ||||
} | } | ||||
} | } |