Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectController.php
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | public function buildIconNavView(PhabricatorProject $project) { | ||||
| $nav->addIcon("feed/{$id}/", pht('Feed'), 'fa-newspaper-o'); | $nav->addIcon("feed/{$id}/", pht('Feed'), 'fa-newspaper-o'); | ||||
| $nav->addIcon("members/{$id}/", pht('Members'), 'fa-group'); | $nav->addIcon("members/{$id}/", pht('Members'), 'fa-group'); | ||||
| $nav->addIcon("details/{$id}/", pht('Edit Details'), 'fa-pencil'); | $nav->addIcon("details/{$id}/", pht('Edit Details'), 'fa-pencil'); | ||||
| return $nav; | return $nav; | ||||
| } | } | ||||
| protected function buildApplicationCrumbs() { | |||||
| $crumbs = parent::buildApplicationCrumbs(); | |||||
| $project = $this->getProject(); | |||||
| if ($project) { | |||||
| $ancestors = $project->getAncestorProjects(); | |||||
| $ancestors = array_reverse($ancestors); | |||||
| $ancestors[] = $project; | |||||
| foreach ($ancestors as $ancestor) { | |||||
| $crumbs->addTextCrumb( | |||||
| $project->getName(), | |||||
| $project->getURI()); | |||||
| } | |||||
| } | |||||
| return $crumbs; | |||||
| } | |||||
| } | } | ||||