mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 12:12:43 +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();
|
$request = $this->getRequest();
|
||||||
$controller = id(new PhabricatorApplicationSearchController($request))
|
$controller = id(new PhabricatorApplicationSearchController($request))
|
||||||
->setQueryKey($this->queryKey)
|
->setQueryKey($this->queryKey)
|
||||||
// ->setPreamble($this->buildShortcuts())
|
->setPreface($this->buildShortcuts())
|
||||||
->setSearchEngine(new PhabricatorRepositorySearchEngine())
|
->setSearchEngine(new PhabricatorRepositorySearchEngine())
|
||||||
->setNavigation($this->buildSideNavView());
|
->setNavigation($this->buildSideNavView());
|
||||||
|
|
||||||
|
@ -141,8 +141,6 @@ final class DiffusionRepositoryListController extends DiffusionController
|
||||||
}
|
}
|
||||||
|
|
||||||
$list = new PHUIObjectItemListView();
|
$list = new PHUIObjectItemListView();
|
||||||
$list->setCards(true);
|
|
||||||
$list->setFlush(true);
|
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$item = id(new PHUIObjectItemView())
|
$item = id(new PHUIObjectItemView())
|
||||||
->setHeader($row[0])
|
->setHeader($row[0])
|
||||||
|
@ -150,12 +148,7 @@ final class DiffusionRepositoryListController extends DiffusionController
|
||||||
->setSubhead(($row[2] ? $row[2] : pht('No Description')));
|
->setSubhead(($row[2] ? $row[2] : pht('No Description')));
|
||||||
$list->addItem($item);
|
$list->addItem($item);
|
||||||
}
|
}
|
||||||
|
$shortcut_panel = array($list, phutil_tag('hr'));
|
||||||
$shortcut_panel = id(new AphrontPanelView())
|
|
||||||
->setNoBackground(true)
|
|
||||||
->setHeader(pht('Shortcuts'))
|
|
||||||
->appendChild($list);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$shortcut_panel = null;
|
$shortcut_panel = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue