Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96620451
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
Sun, Dec 29, 01:34
Size
937 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 01:34 (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
23201160
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