Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorShowFiletreeSetting.php
| <?php | <?php | ||||
| final class PhabricatorShowFiletreeSetting | final class PhabricatorShowFiletreeSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'diff-filetree'; | const SETTINGKEY = 'diff-filetree'; | ||||
| const VALUE_DISABLE_FILETREE = 0; | const VALUE_DISABLE_FILETREE = 0; | ||||
| const VALUE_ENABLE_FILETREE = 1; | const VALUE_ENABLE_FILETREE = 1; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Show Filetree'); | return pht('Show Filetree'); | ||||
| } | } | ||||
| protected function getSettingOrder() { | |||||
| return 300; | |||||
| } | |||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDiffPreferencesSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'When viewing a revision or commit, you can enable a sidebar showing '. | 'When viewing a revision or commit, you can enable a sidebar showing '. | ||||
| 'affected files. When this option is enabled, press {nav %s} to show '. | 'affected files. When this option is enabled, press {nav %s} to show '. | ||||
| 'or hide the sidebar.', | 'or hide the sidebar.', | ||||
| 'f'); | 'f'); | ||||
| } | } | ||||
| Show All 12 Lines | |||||