Differential D20845 Diff 49697 src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | public function renderDocumentEngineBlocks( | ||||
// but fake it for now and just share as much code as possible. | // but fake it for now and just share as much code as possible. | ||||
$primitives = array(); | $primitives = array(); | ||||
foreach ($block_list->newOneUpLayout() as $block) { | foreach ($block_list->newOneUpLayout() as $block) { | ||||
$primitives[] = array( | $primitives[] = array( | ||||
'type' => 'old-file', | 'type' => 'old-file', | ||||
'htype' => '', | 'htype' => '', | ||||
'line' => $block->getBlockKey(), | 'line' => $block->getBlockKey(), | ||||
'render' => $block->newContentView(), | 'render' => $block->getContent(), | ||||
); | ); | ||||
} | } | ||||
// TODO: We'd like to share primitive code here, but buildPrimitives() | // TODO: We'd like to share primitive code here, but buildPrimitives() | ||||
// currently chokes on changesets with no textual data. | // currently chokes on changesets with no textual data. | ||||
foreach ($this->getOldComments() as $line => $group) { | foreach ($this->getOldComments() as $line => $group) { | ||||
foreach ($group as $comment) { | foreach ($group as $comment) { | ||||
$primitives[] = array( | $primitives[] = array( | ||||
Show All 27 Lines |