Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98107753
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
Thu, Jan 9, 21:03
Size
676 B
Mime Type
text/x-php
Expires
Sat, Jan 11, 21:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23506818
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