mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 20:10:55 +01:00
Dedupe DIRECTORY w/ Directory tab in directory header
Summary: the tab is a bit silly right next to DIRECTORY Test Plan: viewed phabricator with an admin account * looks good on load * clicked Categories and Items; looked good viewed phabricator with a non-admin account * looks good on load * nothing else to click in the header Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: 1131
This commit is contained in:
parent
75e1a0d5a8
commit
ec8dbfd05f
1 changed files with 3 additions and 8 deletions
|
@ -30,15 +30,8 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
|
|||
$page->setBaseURI('/');
|
||||
$page->setTitle(idx($data, 'title'));
|
||||
|
||||
$tabs = array(
|
||||
'directory' => array(
|
||||
'href' => '/',
|
||||
'name' => 'Directory',
|
||||
),
|
||||
);
|
||||
|
||||
if ($this->getRequest()->getUser()->getIsAdmin()) {
|
||||
$tabs += array(
|
||||
$tabs = array(
|
||||
'categories' => array(
|
||||
'href' => '/directory/category/',
|
||||
'name' => 'Categories',
|
||||
|
@ -48,6 +41,8 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
|
|||
'name' => 'Items',
|
||||
),
|
||||
);
|
||||
} else {
|
||||
$tabs = array();
|
||||
}
|
||||
|
||||
$page->setTabs(
|
||||
|
|
Loading…
Reference in a new issue