Differential D12186 Diff 29293 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 453 Lines • ▼ Show 20 Lines | protected function buildInlineComment( | ||||
| $edit = $user && | $edit = $user && | ||||
| ($comment->getAuthorPHID() == $user->getPHID()) && | ($comment->getAuthorPHID() == $user->getPHID()) && | ||||
| ($comment->isDraft()) | ($comment->isDraft()) | ||||
| && $this->getShowEditAndReplyLinks(); | && $this->getShowEditAndReplyLinks(); | ||||
| $allow_reply = (bool)$user && $this->getShowEditAndReplyLinks(); | $allow_reply = (bool)$user && $this->getShowEditAndReplyLinks(); | ||||
| $allow_done = !$comment->isDraft() && $this->getCanMarkDone(); | $allow_done = !$comment->isDraft() && $this->getCanMarkDone(); | ||||
| return id(new PHUIDiffInlineCommentDetailView()) | return id(new PHUIDiffInlineCommentDetailView()) | ||||
| ->setUser($user) | |||||
| ->setInlineComment($comment) | ->setInlineComment($comment) | ||||
| ->setIsOnRight($on_right) | ->setIsOnRight($on_right) | ||||
| ->setHandles($this->getHandles()) | ->setHandles($this->getHandles()) | ||||
| ->setMarkupEngine($this->getMarkupEngine()) | ->setMarkupEngine($this->getMarkupEngine()) | ||||
| ->setEditable($edit) | ->setEditable($edit) | ||||
| ->setAllowReply($allow_reply) | ->setAllowReply($allow_reply) | ||||
| ->setCanMarkDone($allow_done) | ->setCanMarkDone($allow_done) | ||||
| ->setObjectOwnerPHID($this->getObjectOwnerPHID()); | ->setObjectOwnerPHID($this->getObjectOwnerPHID()); | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||