Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/controller/DivinerAtomController.php
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
if (!$symbol) { | if (!$symbol) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$atom = $symbol->getAtom(); | $atom = $symbol->getAtom(); | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$crumbs->addCrumb( | $crumbs->addTextCrumb( | ||||
id(new PhabricatorCrumbView()) | $book->getShortTitle(), | ||||
->setName($book->getShortTitle()) | '/book/'.$book->getName().'/'); | ||||
->setHref('/book/'.$book->getName().'/')); | |||||
$atom_short_title = $atom->getDocblockMetaValue( | $atom_short_title = $atom->getDocblockMetaValue( | ||||
'short', | 'short', | ||||
$symbol->getTitle()); | $symbol->getTitle()); | ||||
$crumbs->addCrumb( | $crumbs->addTextCrumb($atom_short_title); | ||||
id(new PhabricatorCrumbView()) | |||||
->setName($atom_short_title)); | |||||
$header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
->setHeader($this->renderFullSignature($symbol)) | ->setHeader($this->renderFullSignature($symbol)) | ||||
->addTag( | ->addTag( | ||||
id(new PhabricatorTagView()) | id(new PhabricatorTagView()) | ||||
->setType(PhabricatorTagView::TYPE_STATE) | ->setType(PhabricatorTagView::TYPE_STATE) | ||||
->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) | ->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) | ||||
->setName(DivinerAtom::getAtomTypeNameString($atom->getType()))); | ->setName(DivinerAtom::getAtomTypeNameString($atom->getType()))); | ||||
▲ Show 20 Lines • Show All 595 Lines • Show Last 20 Lines |