1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00

Add a crumb to blog on Phame posts

Summary: Crumbies

Test Plan: View post, see blog link, click on crumb, see blog

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14449
This commit is contained in:
Chad Little 2015-11-09 22:18:27 +00:00 committed by chad
parent ada7d45a00
commit 7fd6704fb5
2 changed files with 10 additions and 2 deletions

View file

@ -39,8 +39,11 @@ final class PhameBlogViewController extends PhameBlogController {
->appendChild($post_list); ->appendChild($post_list);
$crumbs = $this->buildApplicationCrumbs(); $crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Blogs'), $this->getApplicationURI('blog/')); $crumbs->addTextCrumb(
$crumbs->addTextCrumb($blog->getName(), $this->getApplicationURI()); pht('Blogs'),
$this->getApplicationURI('blog/'));
$crumbs->addTextCrumb(
$blog->getName());
$object_box = id(new PHUIObjectBoxView()) $object_box = id(new PHUIObjectBoxView())
->setHeader($header) ->setHeader($header)

View file

@ -14,7 +14,12 @@ final class PhamePostViewController extends PhamePostController {
return new Aphront404Response(); return new Aphront404Response();
} }
$blog = $post->getBlog();
$crumbs = $this->buildApplicationCrumbs(); $crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(
$blog->getName(),
$this->getApplicationURI('blog/view/'.$blog->getID().'/'));
$crumbs->addTextCrumb( $crumbs->addTextCrumb(
$post->getTitle(), $post->getTitle(),
$this->getApplicationURI('post/view/'.$post->getID().'/')); $this->getApplicationURI('post/view/'.$post->getID().'/'));