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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user