Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122035162
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
Tue, Jul 15, 10:25
Size
849 B
Mime Type
text/x-php
Expires
Thu, Jul 17, 10:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27426259
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
()
{
$markup
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-remarkup'
,
),
$this
->
getMarkupEngineOutput
());
return
id
(
new
AphrontNoteView
())
->
setTitle
(
'Commit Message'
)
->
appendChild
(
$markup
)
->
render
();
}
public
function
shouldMarkup
()
{
return
true
;
}
public
function
getMarkupText
(
$field
)
{
$commit_data
=
$this
->
getReleephRequest
()
->
loadPhabricatorRepositoryCommitData
();
if
(
$commit_data
)
{
return
$commit_data
->
getCommitMessage
();
}
else
{
return
''
;
}
}
}
Event Timeline
Log In to Comment