Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96191662
ReleephDiffMessageFieldSpecification.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, 15:00
Size
832 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 15:00 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23141276
Attached To
rPH Phabricator
ReleephDiffMessageFieldSpecification.php
View Options
<?php
final
class
ReleephDiffMessageFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getName
()
{
return
'Message'
;
}
public
function
renderLabelForHeaderView
()
{
return
null
;
}
public
function
renderValueForHeaderView
()
{
$commit_data
=
$this
->
getReleephRequest
()
->
loadPhabricatorRepositoryCommitData
();
if
(!
$commit_data
)
{
return
''
;
}
$engine
=
PhabricatorMarkupEngine
::
newDifferentialMarkupEngine
();
$engine
->
setConfig
(
'viewer'
,
$this
->
getUser
());
$markup
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-remarkup'
,
),
$engine
->
markupText
(
$commit_data
->
getCommitMessage
()));
return
id
(
new
AphrontNoteView
())
->
setTitle
(
'Commit Message'
)
->
appendChild
(
$markup
)
->
render
();
}
}
Event Timeline
Log In to Comment