Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | public function render() { | ||||
| // I think this is unused | // I think this is unused | ||||
| if ($inline->getHasReplies()) { | if ($inline->getHasReplies()) { | ||||
| $classes[] = 'inline-comment-has-reply'; | $classes[] = 'inline-comment-has-reply'; | ||||
| } | } | ||||
| // I think this is unused | // I think this is unused | ||||
| if ($inline->getReplyToCommentPHID()) { | if ($inline->getReplyToCommentPHID()) { | ||||
| $classes[] = 'inline-comment-is-reply'; | $classes[] = 'inline-comment-is-reply'; | ||||
| } | } | ||||
| // Might break? | |||||
| if ($this->getCanMarkDone()) { | $viewer_phid = $this->getUser()->getPHID(); | ||||
| $classes[] = 'viewer-is-diff-author'; | $owner_phid = $this->getObjectOwnerPHID(); | ||||
| if ($viewer_phid) { | |||||
| if ($viewer_phid == $owner_phid) { | |||||
| $classes[] = 'viewer-is-object-owner'; | |||||
epriestley: I renamed this (currently unused) class because inlines show up on commits too, so "diff… | |||||
| } | |||||
| } | } | ||||
| $action_buttons = new PHUIButtonBarView(); | $action_buttons = new PHUIButtonBarView(); | ||||
| $action_buttons->addClass('mml'); | $action_buttons->addClass('mml'); | ||||
| $nextprev = null; | $nextprev = null; | ||||
| if (!$this->preview) { | if (!$this->preview) { | ||||
| $nextprev = new PHUIButtonBarView(); | $nextprev = new PHUIButtonBarView(); | ||||
| $nextprev->addClass('mml'); | $nextprev->addClass('mml'); | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||
I renamed this (currently unused) class because inlines show up on commits too, so "diff author" was a little un-general.