From c74ebf9ce05d991cb8fee83ea6882794e1846c82 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 8 Sep 2013 11:52:49 -0700 Subject: [PATCH] Restore repository shortcuts, for now Summary: These need to die soon since they're not structurally policy-aware, but keep them around for the moment until we can replace them. There is no UI to create these, and only Facebook has them. Test Plan: {F57614} Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6920 --- .../controller/DiffusionRepositoryListController.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/applications/diffusion/controller/DiffusionRepositoryListController.php b/src/applications/diffusion/controller/DiffusionRepositoryListController.php index 37b7da7c45..85dbc0d529 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryListController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryListController.php @@ -17,7 +17,7 @@ final class DiffusionRepositoryListController extends DiffusionController $request = $this->getRequest(); $controller = id(new PhabricatorApplicationSearchController($request)) ->setQueryKey($this->queryKey) -// ->setPreamble($this->buildShortcuts()) + ->setPreface($this->buildShortcuts()) ->setSearchEngine(new PhabricatorRepositorySearchEngine()) ->setNavigation($this->buildSideNavView()); @@ -141,8 +141,6 @@ final class DiffusionRepositoryListController extends DiffusionController } $list = new PHUIObjectItemListView(); - $list->setCards(true); - $list->setFlush(true); foreach ($rows as $row) { $item = id(new PHUIObjectItemView()) ->setHeader($row[0]) @@ -150,12 +148,7 @@ final class DiffusionRepositoryListController extends DiffusionController ->setSubhead(($row[2] ? $row[2] : pht('No Description'))); $list->addItem($item); } - - $shortcut_panel = id(new AphrontPanelView()) - ->setNoBackground(true) - ->setHeader(pht('Shortcuts')) - ->appendChild($list); - + $shortcut_panel = array($list, phutil_tag('hr')); } else { $shortcut_panel = null; }