Differential D12186 Diff 29293 src/applications/diffusion/controller/DiffusionBrowseFileController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBrowseFileController.php
| Show First 20 Lines • Show All 839 Lines • ▼ Show 20 Lines | final class DiffusionBrowseFileController extends DiffusionBrowseController { | ||||
| private function renderInlines( | private function renderInlines( | ||||
| array $inlines, | array $inlines, | ||||
| $needs_blame, | $needs_blame, | ||||
| $has_coverage, | $has_coverage, | ||||
| $engine) { | $engine) { | ||||
| $rows = array(); | $rows = array(); | ||||
| foreach ($inlines as $inline) { | foreach ($inlines as $inline) { | ||||
| // TODO: This should use modern scaffolding code. | |||||
| $inline_view = id(new PHUIDiffInlineCommentDetailView()) | $inline_view = id(new PHUIDiffInlineCommentDetailView()) | ||||
| ->setUser($this->getViewer()) | |||||
| ->setMarkupEngine($engine) | ->setMarkupEngine($engine) | ||||
| ->setInlineComment($inline) | ->setInlineComment($inline) | ||||
| ->render(); | ->render(); | ||||
| $row = array_fill(0, ($needs_blame ? 3 : 1), phutil_tag('th')); | $row = array_fill(0, ($needs_blame ? 3 : 1), phutil_tag('th')); | ||||
| $row[] = phutil_tag('td', array(), $inline_view); | $row[] = phutil_tag('td', array(), $inline_view); | ||||
| ▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines | |||||