Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | private function buildCrumbList(array $spec = array()) { | ||||
if (!$repository) { | if (!$repository) { | ||||
return $crumb_list; | return $crumb_list; | ||||
} | } | ||||
$repository_name = $repository->getName(); | $repository_name = $repository->getName(); | ||||
if (!$spec['commit'] && !$spec['tags'] && !$spec['branches']) { | if (!$spec['commit'] && !$spec['tags'] && !$spec['branches']) { | ||||
$branch_name = $drequest->getBranch(); | $branch_name = $drequest->getBranch(); | ||||
if (strlen($branch_name)) { | if (phutil_nonempty_string($branch_name)) { | ||||
$repository_name .= ' ('.$branch_name.')'; | $repository_name .= ' ('.$branch_name.')'; | ||||
} | } | ||||
} | } | ||||
$crumb = id(new PHUICrumbView()) | $crumb = id(new PHUICrumbView()) | ||||
->setName($repository_name); | ->setName($repository_name); | ||||
if (!$spec['view'] && !$spec['commit'] && | if (!$spec['view'] && !$spec['commit'] && | ||||
!$spec['tags'] && !$spec['branches']) { | !$spec['tags'] && !$spec['branches']) { | ||||
▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0