Differential D19302 Diff 46190 src/applications/files/document/render/PhabricatorFileDocumentRenderingEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/render/PhabricatorFileDocumentRenderingEngine.php
Show All 28 Lines | protected function newRefRenderURI( | ||||
return urisprintf( | return urisprintf( | ||||
'/file/document/%s/%s/', | '/file/document/%s/%s/', | ||||
$engine_key, | $engine_key, | ||||
$file_phid); | $file_phid); | ||||
} | } | ||||
protected function addApplicationCrumbs( | protected function addApplicationCrumbs( | ||||
PhabricatorDocumentRef $ref, | PHUICrumbsView $crumbs, | ||||
PHUICrumbsView $crumbs) { | PhabricatorDocumentRef $ref = null) { | ||||
if ($ref) { | |||||
$file = $ref->getFile(); | $file = $ref->getFile(); | ||||
if ($file) { | if ($file) { | ||||
$crumbs->addTextCrumb($file->getMonogram(), $file->getInfoURI()); | $crumbs->addTextCrumb($file->getMonogram(), $file->getInfoURI()); | ||||
} | } | ||||
} | |||||
} | } | ||||
} | } |