protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     $can_create = $this->hasApplicationCapability(LegalpadCreateDocumentsCapability::CAPABILITY);
     $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Create Document'))->setHref($this->getApplicationURI('create/'))->setIcon('fa-plus-square')->setDisabled(!$can_create)->setWorkflow(!$can_create));
     return $crumbs;
 }
 public function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     if ($this->document) {
         $crumbs->addTextCrumb($this->document->getMonogram(), '/' . $this->document->getMonogram());
         $crumbs->addTextCrumb(pht('Manage'), $this->getApplicationURI('view/' . $this->document->getID() . '/'));
     } else {
         $crumbs->addTextCrumb(pht('Signatures'), '/legalpad/signatures/');
     }
     return $crumbs;
 }