Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorImageDocumentEngine.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | $image_view = phutil_tag( | ||||
), | ), | ||||
phutil_tag( | phutil_tag( | ||||
'img', | 'img', | ||||
array( | array( | ||||
'src' => $file->getBestURI(), | 'src' => $file->getBestURI(), | ||||
))); | ))); | ||||
$blocks[] = id(new PhabricatorDocumentEngineBlock()) | $blocks[] = id(new PhabricatorDocumentEngineBlock()) | ||||
->setBlockKey('1') | |||||
->addClass('diff-image-cell') | |||||
->setContent($image_view); | ->setContent($image_view); | ||||
return $blocks; | return $blocks; | ||||
} | } | ||||
protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | ||||
$file = $ref->getFile(); | $file = $ref->getFile(); | ||||
if ($file) { | if ($file) { | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |