mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-29 04:28:12 +01:00
Add icons to Settings
Summary: Depends on D20005. I love icons. Test Plan: {F6145996} Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20006
This commit is contained in:
parent
f713fa1fd7
commit
d6d93dd658
24 changed files with 103 additions and 12 deletions
|
@ -19,6 +19,10 @@ final class PhabricatorConduitTokensSettingsPanel
|
|||
return pht('Conduit API Tokens');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return id(new PhabricatorConduitApplication())->getIcon();
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@ final class DiffusionSetPasswordSettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('VCS Password');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-code';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorOAuthServerAuthorizationsSettingsPanel
|
|||
return pht('OAuth Authorizations');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-exchange';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -209,7 +209,11 @@ final class PhabricatorSettingsMainController
|
|||
}
|
||||
}
|
||||
|
||||
$nav->addFilter($panel->getPanelKey(), $panel->getPanelName());
|
||||
$nav->addFilter(
|
||||
$panel->getPanelKey(),
|
||||
$panel->getPanelName(),
|
||||
null,
|
||||
$panel->getPanelMenuIcon());
|
||||
}
|
||||
|
||||
return $nav;
|
||||
|
|
|
@ -10,6 +10,10 @@ final class PhabricatorActivitySettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('Activity Logs');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-list';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorConpherencePreferencesSettingsPanel
|
|||
return pht('Conpherence');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-comment-o';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorContactNumbersSettingsPanel
|
|||
return pht('Contact Numbers');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-mobile';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorDateTimeSettingsPanel
|
|||
return pht('Date and Time');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-calendar';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorDeveloperPreferencesSettingsPanel
|
|||
return pht('Developer Settings');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-magic';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsDeveloperPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorDiffPreferencesSettingsPanel
|
|||
return pht('Diff Preferences');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-cog';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorDisplayPreferencesSettingsPanel
|
|||
return pht('Display Preferences');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-desktop';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorEmailAddressesSettingsPanel
|
|||
return pht('Email Addresses');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-at';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorEmailDeliverySettingsPanel
|
|||
return pht('Email Delivery');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-envelope-o';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorEmailFormatSettingsPanel
|
|||
return pht('Email Format');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-font';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
@ -19,17 +23,6 @@ final class PhabricatorEmailFormatSettingsPanel
|
|||
|
||||
public function isManagementPanel() {
|
||||
return false;
|
||||
/*
|
||||
if (!$this->isUserPanel()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->getUser()->getIsMailingList()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
*/
|
||||
}
|
||||
|
||||
public function isTemplatePanel() {
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorEmailPreferencesSettingsPanel
|
|||
return pht('Email Preferences');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-envelope-open-o';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorExternalAccountsSettingsPanel
|
|||
return pht('External Accounts');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-users';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ final class PhabricatorLanguageSettingsPanel
|
|||
return pht('Language');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-globe';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@ final class PhabricatorMultiFactorSettingsPanel
|
|||
return pht('Multi-Factor Auth');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-lock';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,10 @@ final class PhabricatorNotificationsSettingsPanel
|
|||
return pht('Notifications');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-bell-o';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,10 @@ final class PhabricatorPasswordSettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('Password');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-key';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@ final class PhabricatorSSHKeysSettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('SSH Public Keys');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-file-text-o';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,10 @@ final class PhabricatorSessionsSettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('Sessions');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-user';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
|
@ -131,6 +131,16 @@ abstract class PhabricatorSettingsPanel extends Phobject {
|
|||
abstract public function getPanelName();
|
||||
|
||||
|
||||
/**
|
||||
* Return an icon for the panel in the menu.
|
||||
*
|
||||
* @return string Icon identifier.
|
||||
* @task config
|
||||
*/
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-wrench';
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a panel group key constant for this panel.
|
||||
*
|
||||
|
|
|
@ -10,6 +10,10 @@ final class PhabricatorTokensSettingsPanel extends PhabricatorSettingsPanel {
|
|||
return pht('Temporary Tokens');
|
||||
}
|
||||
|
||||
public function getPanelMenuIcon() {
|
||||
return 'fa-ticket';
|
||||
}
|
||||
|
||||
public function getPanelGroupKey() {
|
||||
return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue