Differential D19309 Diff 46200 src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/document/DiffusionDocumentRenderingEngine.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | final class DiffusionDocumentRenderingEngine | ||||
protected function addApplicationCrumbs( | protected function addApplicationCrumbs( | ||||
PHUICrumbsView $crumbs, | PHUICrumbsView $crumbs, | ||||
PhabricatorDocumentRef $ref = null) { | PhabricatorDocumentRef $ref = null) { | ||||
return; | return; | ||||
} | } | ||||
protected function willRenderRef(PhabricatorDocumentRef $ref) { | protected function willRenderRef(PhabricatorDocumentRef $ref) { | ||||
$ref->setSymbolMetadata($this->getSymbolMetadata()); | $drequest = $this->getDiffusionRequest(); | ||||
$blame_uri = (string)$drequest->generateURI( | |||||
array( | |||||
'action' => 'blame', | |||||
'stable' => true, | |||||
)); | |||||
$ref | |||||
->setSymbolMetadata($this->getSymbolMetadata()) | |||||
->setBlameURI($blame_uri); | |||||
} | } | ||||
private function getSymbolMetadata() { | private function getSymbolMetadata() { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$repo = $drequest->getRepository(); | $repo = $drequest->getRepository(); | ||||
$symbol_repos = nonempty($repo->getSymbolSources(), array()); | $symbol_repos = nonempty($repo->getSymbolSources(), array()); | ||||
$symbol_repos[] = $repo->getPHID(); | $symbol_repos[] = $repo->getPHID(); | ||||
Show All 11 Lines |