diffusionRequest) { $repository = $this->getDiffusionRequest()->getRepository(); $repo_uri = $this->getRepositoryControllerURI($repository, ''); $edit_uri = $this->getRepositoryControllerURI($repository, 'edit/'); $crumbs->addCrumb( id(new PhabricatorCrumbView()) ->setName('r'.$repository->getCallsign()) ->setHref($repo_uri)); if ($is_main) { $crumbs->addCrumb( id(new PhabricatorCrumbView()) ->setName(pht('Edit Repository'))); } else { $crumbs->addCrumb( id(new PhabricatorCrumbView()) ->setName(pht('Edit')) ->setHref($edit_uri)); } } return $crumbs; } }