Differential D21186 Diff 50451 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 458 Lines • ▼ Show 20 Lines | return javelin_tag( | ||||
| )); | )); | ||||
| } | } | ||||
| protected function getTableSigils() { | protected function getTableSigils() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function buildInlineComment( | protected function buildInlineComment( | ||||
| PhabricatorInlineCommentInterface $comment, | PhabricatorInlineComment $comment, | ||||
| $on_right = false) { | $on_right = false) { | ||||
| $user = $this->getUser(); | $viewer = $this->getUser(); | ||||
| $edit = $user && | $edit = $viewer && | ||||
| ($comment->getAuthorPHID() == $user->getPHID()) && | ($comment->getAuthorPHID() == $viewer->getPHID()) && | ||||
| ($comment->isDraft()) | ($comment->isDraft()) | ||||
| && $this->getShowEditAndReplyLinks(); | && $this->getShowEditAndReplyLinks(); | ||||
| $allow_reply = (bool)$user && $this->getShowEditAndReplyLinks(); | $allow_reply = (bool)$viewer && $this->getShowEditAndReplyLinks(); | ||||
| $allow_done = !$comment->isDraft() && $this->getCanMarkDone(); | $allow_done = !$comment->isDraft() && $this->getCanMarkDone(); | ||||
| return id(new PHUIDiffInlineCommentDetailView()) | return id(new PHUIDiffInlineCommentDetailView()) | ||||
| ->setUser($user) | ->setViewer($viewer) | ||||
| ->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 133 Lines • Show Last 20 Lines | |||||