Differential D20192 Diff 48220 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 426 Lines • ▼ Show 20 Lines | protected function wrapChangeInTable($content) { | ||||
| } | } | ||||
| $classes = array(); | $classes = array(); | ||||
| $classes[] = 'differential-diff'; | $classes[] = 'differential-diff'; | ||||
| $classes[] = 'remarkup-code'; | $classes[] = 'remarkup-code'; | ||||
| $classes[] = 'PhabricatorMonospaced'; | $classes[] = 'PhabricatorMonospaced'; | ||||
| $classes[] = $this->getRendererTableClass(); | $classes[] = $this->getRendererTableClass(); | ||||
| $sigils = array(); | |||||
| $sigils[] = 'differential-diff'; | |||||
| foreach ($this->getTableSigils() as $sigil) { | |||||
| $sigils[] = $sigil; | |||||
| } | |||||
| return javelin_tag( | return javelin_tag( | ||||
| 'table', | 'table', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $classes), | 'class' => implode(' ', $classes), | ||||
| 'sigil' => 'differential-diff intercept-copy', | 'sigil' => implode(' ', $sigils), | ||||
| ), | ), | ||||
| array( | array( | ||||
| $this->renderColgroup(), | $this->renderColgroup(), | ||||
| $content, | $content, | ||||
| )); | )); | ||||
| } | } | ||||
| protected function getTableSigils() { | |||||
| return array(); | |||||
| } | |||||
| protected function buildInlineComment( | protected function buildInlineComment( | ||||
| PhabricatorInlineCommentInterface $comment, | PhabricatorInlineCommentInterface $comment, | ||||
| $on_right = false) { | $on_right = false) { | ||||
| $user = $this->getUser(); | $user = $this->getUser(); | ||||
| $edit = $user && | $edit = $user && | ||||
| ($comment->getAuthorPHID() == $user->getPHID()) && | ($comment->getAuthorPHID() == $user->getPHID()) && | ||||
| ($comment->isDraft()) | ($comment->isDraft()) | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||