Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | public function getScaffoldCellID() { | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| public function render() { | public function render() { | ||||
| require_celerity_resource('phui-inline-comment-view-css'); | require_celerity_resource('phui-inline-comment-view-css'); | ||||
| $inline = $this->getInlineComment(); | $inline = $this->getInlineComment(); | ||||
| $classes = array( | |||||
| 'differential-inline-comment', | |||||
| ); | |||||
| $is_synthetic = false; | $is_synthetic = false; | ||||
| if ($inline->getSyntheticAuthor()) { | if ($inline->getSyntheticAuthor()) { | ||||
| $is_synthetic = true; | $is_synthetic = true; | ||||
| } | } | ||||
| $is_preview = $this->preview; | $is_preview = $this->preview; | ||||
| $metadata = $this->getInlineCommentMetadata(); | $metadata = $this->getInlineCommentMetadata(); | ||||
| $classes = array( | |||||
| 'differential-inline-comment', | |||||
| ); | |||||
| $sigil = 'differential-inline-comment'; | $sigil = 'differential-inline-comment'; | ||||
| if ($is_preview) { | if ($is_preview) { | ||||
| $sigil = $sigil.' differential-inline-comment-preview'; | $sigil = $sigil.' differential-inline-comment-preview'; | ||||
| } | |||||
| $classes = array( | $classes[] = 'inline-comment-preview'; | ||||
| 'differential-inline-comment', | } else { | ||||
| ); | $classes[] = 'inline-comment-element'; | ||||
| } | |||||
| $content = $inline->getContent(); | $content = $inline->getContent(); | ||||
| $handles = $this->handles; | $handles = $this->handles; | ||||
| $links = array(); | $links = array(); | ||||
| $draft_text = null; | $draft_text = null; | ||||
| if (!$is_synthetic) { | if (!$is_synthetic) { | ||||
| ▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines | |||||