Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/post/PhamePostViewController.php
Show All 11 Lines | public function handleRequest(AphrontRequest $request) { | ||||
if (!$post) { | if (!$post) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$blog = $post->getBlog(); | $blog = $post->getBlog(); | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
if ($blog) { | |||||
$crumbs->addTextCrumb( | $crumbs->addTextCrumb( | ||||
$blog->getName(), | $blog->getName(), | ||||
$this->getApplicationURI('blog/view/'.$blog->getID().'/')); | $this->getApplicationURI('blog/view/'.$blog->getID().'/')); | ||||
} else { | |||||
$crumbs->addTextCrumb( | |||||
pht('[No Blog]'), | |||||
null); | |||||
} | |||||
$crumbs->addTextCrumb( | $crumbs->addTextCrumb( | ||||
$post->getTitle(), | $post->getTitle(), | ||||
$this->getApplicationURI('post/view/'.$post->getID().'/')); | $this->getApplicationURI('post/view/'.$post->getID().'/')); | ||||
$crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
$actions = $this->renderActions($post, $viewer); | $actions = $this->renderActions($post, $viewer); | ||||
$properties = $this->renderProperties($post, $viewer); | $properties = $this->renderProperties($post, $viewer); | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |