Differential D19184 Diff 45951 src/applications/owners/controller/PhabricatorOwnersDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/controller/PhabricatorOwnersDetailController.php
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | private function renderPathsTable(array $paths, array $repositories) { | ||||
foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
$repo = idx($repositories, $path->getRepositoryPHID()); | $repo = idx($repositories, $path->getRepositoryPHID()); | ||||
if (!$repo) { | if (!$repo) { | ||||
continue; | continue; | ||||
} | } | ||||
$href = $repo->generateURI( | $href = $repo->generateURI( | ||||
array( | array( | ||||
'branch' => $repo->getDefaultBranch(), | 'branch' => $repo->getDefaultBranch(), | ||||
'path' => $path->getPath(), | 'path' => $path->getPathDisplay(), | ||||
'action' => 'browse', | 'action' => 'browse', | ||||
)); | )); | ||||
$path_link = phutil_tag( | $path_link = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => (string)$href, | 'href' => (string)$href, | ||||
), | ), | ||||
$path->getPath()); | $path->getPathDisplay()); | ||||
$rows[] = array( | $rows[] = array( | ||||
($path->getExcluded() ? '-' : '+'), | ($path->getExcluded() ? '-' : '+'), | ||||
$repo->getName(), | $repo->getName(), | ||||
$path_link, | $path_link, | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |