Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorUnifiedDiffsSetting.php
| <?php | <?php | ||||
| final class PhabricatorUnifiedDiffsSetting | final class PhabricatorUnifiedDiffsSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'diff-unified'; | const SETTINGKEY = 'diff-unified'; | ||||
| const VALUE_ON_SMALL_SCREENS = 'default'; | const VALUE_ON_SMALL_SCREENS = 'default'; | ||||
| const VALUE_ALWAYS_UNIFIED = 'unified'; | const VALUE_ALWAYS_UNIFIED = 'unified'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Show Unified Diffs'); | return pht('Show Unified Diffs'); | ||||
| } | } | ||||
| protected function getSettingOrder() { | |||||
| return 100; | |||||
| } | |||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDiffPreferencesSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'Phabricator normally shows diffs in a side-by-side layout on large '. | 'Phabricator normally shows diffs in a side-by-side layout on large '. | ||||
| 'screens and automatically switches to a unified view on small '. | 'screens and automatically switches to a unified view on small '. | ||||
| 'screens (like mobile phones). If you prefer unified diffs even on '. | 'screens (like mobile phones). If you prefer unified diffs even on '. | ||||
| 'large screens, you can select them for use on all displays.'); | 'large screens, you can select them for use on all displays.'); | ||||
| } | } | ||||
| Show All 13 Lines | |||||