Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
Show First 20 Lines • Show All 427 Lines • ▼ Show 20 Lines | $markup = javelin_tag( | ||||
$group_left, | $group_left, | ||||
$group_right, | $group_right, | ||||
)), | )), | ||||
phutil_tag_div( | phutil_tag_div( | ||||
'differential-inline-comment-content', | 'differential-inline-comment-content', | ||||
phutil_tag_div('phabricator-remarkup', $content)), | phutil_tag_div('phabricator-remarkup', $content)), | ||||
)); | )); | ||||
$snippet = id(new PhutilUTF8StringTruncator()) | |||||
->setMaximumGlyphs(96) | |||||
->truncateString($inline->getContent()); | |||||
$summary = phutil_tag( | $summary = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'differential-inline-summary', | 'class' => 'differential-inline-summary', | ||||
), | ), | ||||
array( | |||||
// TODO: Render something a little more useful here as a hint about the | phutil_tag('strong', array(), pht('%s:', $author)), | ||||
// inline content, like "alincoln: first line of text...". | ' ', | ||||
pht('...')); | $snippet, | ||||
)); | |||||
return array( | return array( | ||||
$anchor, | $anchor, | ||||
$markup, | $markup, | ||||
$summary, | $summary, | ||||
); | ); | ||||
} | } | ||||
Show All 24 Lines |