mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
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:
parent
0da6321b2c
commit
c74ebf9ce0
1 changed files with 2 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue