Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93052073
PhabricatorUnifiedDiffsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 25, 20:23
Size
937 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 20:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22562840
Attached To
rPH Phabricator
PhabricatorUnifiedDiffsSetting.php
View Options
<?php
final
class
PhabricatorUnifiedDiffsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'diff-unified'
;
const
VALUE_ON_SMALL_SCREENS
=
'default'
;
const
VALUE_ALWAYS_UNIFIED
=
'unified'
;
public
function
getSettingName
()
{
return
pht
(
'Show Unified Diffs'
);
}
protected
function
getControlInstructions
()
{
return
pht
(
'Phabricator normally shows diffs in a side-by-side layout on large '
.
'screens and automatically switches to a unified view on small '
.
'screens (like mobile phones). If you prefer unified diffs even on '
.
'large screens, you can select them for use on all displays.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_ON_SMALL_SCREENS
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_ON_SMALL_SCREENS
=>
pht
(
'On Small Screens'
),
self
::
VALUE_ALWAYS_UNIFIED
=>
pht
(
'Always'
),
);
}
}
Event Timeline
Log In to Comment