protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     $can_create = $this->hasApplicationCapability(PhabricatorBadgesCreateCapability::CAPABILITY);
     $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Create Badge'))->setHref($this->getApplicationURI('create/'))->setIcon('fa-plus-square')->setDisabled(!$can_create)->setWorkflow(!$can_create));
     return $crumbs;
 }
 protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     id(new PhabricatorBadgesEditEngine())->setViewer($this->getViewer())->addActionToCrumbs($crumbs);
     return $crumbs;
 }