From ccf43c412e22565a0ea5d4052e3a8ac1aedec39b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 17 Jun 2016 12:34:26 -0700 Subject: [PATCH] More links on Blog manage page Summary: Adds a view live and view internal link to the blog and crumbs manage page. Test Plan: Click on new links. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16142 --- .../controller/blog/PhameBlogManageController.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/applications/phame/controller/blog/PhameBlogManageController.php b/src/applications/phame/controller/blog/PhameBlogManageController.php index 3fa9c07e46..bcd9c9456b 100644 --- a/src/applications/phame/controller/blog/PhameBlogManageController.php +++ b/src/applications/phame/controller/blog/PhameBlogManageController.php @@ -32,12 +32,19 @@ final class PhameBlogManageController extends PhameBlogController { $picture = $blog->getProfileImageURI(); + $view = id(new PHUIButtonView()) + ->setTag('a') + ->setText(pht('View Live')) + ->setIcon('fa-external-link') + ->setHref($blog->getLiveURI()); + $header = id(new PHUIHeaderView()) ->setHeader($blog->getName()) ->setUser($viewer) ->setPolicyObject($blog) ->setImage($picture) - ->setStatus($header_icon, $header_color, $header_name); + ->setStatus($header_icon, $header_color, $header_name) + ->addActionLink($view); $curtain = $this->buildCurtain($blog); $properties = $this->buildPropertyView($blog); @@ -48,7 +55,9 @@ final class PhameBlogManageController extends PhameBlogController { pht('Blogs'), $this->getApplicationURI('blog/')); $crumbs->addTextCrumb( - $blog->getName()); + $blog->getName(), + $this->getApplicationURI('blog/view/'.$id)); + $crumbs->addTextCrumb(pht('Manage Blog')); $crumbs->setBorder(true); $object_box = id(new PHUIObjectBoxView())