Differential D20006 Diff 47807 src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
| <?php | <?php | ||||
| final class PhabricatorEmailFormatSettingsPanel | final class PhabricatorEmailFormatSettingsPanel | ||||
| extends PhabricatorEditEngineSettingsPanel { | extends PhabricatorEditEngineSettingsPanel { | ||||
| const PANELKEY = 'emailformat'; | const PANELKEY = 'emailformat'; | ||||
| public function getPanelName() { | public function getPanelName() { | ||||
| return pht('Email Format'); | return pht('Email Format'); | ||||
| } | } | ||||
| public function getPanelMenuIcon() { | |||||
| return 'fa-font'; | |||||
| } | |||||
| public function getPanelGroupKey() { | public function getPanelGroupKey() { | ||||
| return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; | return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; | ||||
| } | } | ||||
| public function isUserPanel() { | public function isUserPanel() { | ||||
| return PhabricatorMetaMTAMail::shouldMailEachRecipient(); | return PhabricatorMetaMTAMail::shouldMailEachRecipient(); | ||||
| } | } | ||||
| public function isManagementPanel() { | public function isManagementPanel() { | ||||
| return false; | return false; | ||||
| /* | |||||
| if (!$this->isUserPanel()) { | |||||
| return false; | |||||
| } | |||||
| if ($this->getUser()->getIsMailingList()) { | |||||
| return true; | |||||
| } | |||||
| return false; | |||||
| */ | |||||
| } | } | ||||
| public function isTemplatePanel() { | public function isTemplatePanel() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||