Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96144791
ReleephRevisionFieldSpecification.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, Dec 23, 02:26
Size
676 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 02:26 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
23131791
Attached To
rPH Phabricator
ReleephRevisionFieldSpecification.php
View Options
<?php
final
class
ReleephRevisionFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getName
()
{
return
'Revision'
;
}
public
function
renderValueForHeaderView
()
{
$phid
=
$this
->
getReleephRequest
()
->
loadRequestCommitDiffPHID
();
if
(!
$phid
)
{
return
null
;
}
$handles
=
$this
->
getReleephRequest
()->
getHandles
();
$handle
=
$handles
[
$phid
];
$link
=
$handle
// Hack to remove the strike-through rendering of diff links
->
setStatus
(
null
)
->
renderLink
();
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'releeph-header-text-truncated'
,
),
$link
);
}
}
Event Timeline
Log In to Comment