protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $can_create = $this->hasApplicationCapability(FundCreateInitiativesCapability::CAPABILITY); $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Create Initiative'))->setHref($this->getApplicationURI('create/'))->setIcon('fa-plus-square')->setDisabled(!$can_create)->setWorkflow(!$can_create)); return $crumbs; }
protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Backers'), $this->getApplicationURI('backers/')); if ($this->initiative) { $crumbs->addTextCrumb($this->initiative->getMonogram(), '/' . $this->initiative->getMonogram()); } return $crumbs; }