From 5452f215ee17286e1ff6be04c33096dec72d7c42 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 3 Apr 2016 13:42:54 -0700 Subject: [PATCH] Update Feed Story page for newPage Summary: Cleans up Feed Story individual page Test Plan: View an individual story by clicking on date. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15599 --- .../controller/PhabricatorFeedDetailController.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/applications/feed/controller/PhabricatorFeedDetailController.php b/src/applications/feed/controller/PhabricatorFeedDetailController.php index 4fac10d1a8..f136d01202 100644 --- a/src/applications/feed/controller/PhabricatorFeedDetailController.php +++ b/src/applications/feed/controller/PhabricatorFeedDetailController.php @@ -26,19 +26,13 @@ final class PhabricatorFeedDetailController extends PhabricatorFeedController { $title = pht('Story'); - $feed_view = phutil_tag_div('phabricator-feed-frame', $feed_view); - $crumbs = $this->buildApplicationCrumbs(); $crumbs->addTextCrumb($title); - return $this->buildApplicationPage( - array( - $crumbs, - $feed_view, - ), - array( - 'title' => $title, - )); + return $this->newPage() + ->setTitle($title) + ->setCrumbs($crumbs) + ->appendChild($feed_view); } }