1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +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:
Bob Trahan 2011-11-22 10:14:11 -08:00
parent 75e1a0d5a8
commit ec8dbfd05f

View file

@ -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(