1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Align first nav item in settings

Summary: This removes the redundant "Account" label and item, and just keeps the page better aligned.

Test Plan: Review personal settings

Reviewers: epriestley

Reviewed By: epriestley

Spies: Korvin

Differential Revision: https://secure.phabricator.com/D18489
This commit is contained in:
Chad Little 2017-08-29 09:36:33 -07:00
parent 81f42b8343
commit f3f671aa90
2 changed files with 5 additions and 2 deletions

View file

@ -205,7 +205,10 @@ final class PhabricatorSettingsMainController
if ($panel->getPanelGroupKey() != $group_key) {
$group_key = $panel->getPanelGroupKey();
$group = $panel->getPanelGroup();
$nav->addLabel($group->getPanelGroupName());
$panel_name = $group->getPanelGroupName();
if ($panel_name) {
$nav->addLabel($panel_name);
}
}
$nav->addFilter($panel->getPanelKey(), $panel->getPanelName());

View file

@ -6,7 +6,7 @@ final class PhabricatorSettingsAccountPanelGroup
const PANELGROUPKEY = 'account';
public function getPanelGroupName() {
return pht('Account');
return null;
}
protected function getPanelGroupOrder() {