Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | abstract class DiffusionController extends PhabricatorController { | ||||
protected function getRepositoryControllerURI( | protected function getRepositoryControllerURI( | ||||
PhabricatorRepository $repository, | PhabricatorRepository $repository, | ||||
$path) { | $path) { | ||||
return $repository->getPathURI($path); | return $repository->getPathURI($path); | ||||
} | } | ||||
protected function renderPathLinks(DiffusionRequest $drequest, $action) { | protected function renderPathLinks(DiffusionRequest $drequest, $action) { | ||||
$path = $drequest->getPath(); | $path = $drequest->getPath(); | ||||
$path_parts = array(); | |||||
if ($path !== null && strlen($path)) { | |||||
$path_parts = array_filter(explode('/', trim($path, '/'))); | $path_parts = array_filter(explode('/', trim($path, '/'))); | ||||
} | |||||
$divider = phutil_tag( | $divider = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'phui-header-divider', | 'class' => 'phui-header-divider', | ||||
), | ), | ||||
'/'); | '/'); | ||||
▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines |