Display comment title as title instead of body with inline comments
Test Plan: Display revision containing comments with no content but with inline comments. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1474
This commit is contained in:
@@ -137,7 +137,6 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||
$content = $comment->getContent();
|
||||
$head_content = null;
|
||||
if (strlen(rtrim($content))) {
|
||||
$title = "{$author_link} {$verb} this revision:";
|
||||
$cache = $comment->getCache();
|
||||
if (strlen($cache)) {
|
||||
$content = $cache;
|
||||
@@ -155,6 +154,9 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||
'<div class="phabricator-remarkup">'.
|
||||
$content.
|
||||
'</div>';
|
||||
}
|
||||
if (strlen(rtrim($content)) || $this->inlines) {
|
||||
$title = "{$author_link} {$verb} this revision:";
|
||||
} else {
|
||||
$title = null;
|
||||
$head_content =
|
||||
|
||||
Reference in New Issue
Block a user