1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00

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:
vrana 2012-01-23 22:36:03 -08:00
parent 32fc92bdb9
commit 28a5f9f44d

View file

@ -137,7 +137,6 @@ final class DifferentialRevisionCommentView extends AphrontView {
$content = $comment->getContent(); $content = $comment->getContent();
$head_content = null; $head_content = null;
if (strlen(rtrim($content))) { if (strlen(rtrim($content))) {
$title = "{$author_link} {$verb} this revision:";
$cache = $comment->getCache(); $cache = $comment->getCache();
if (strlen($cache)) { if (strlen($cache)) {
$content = $cache; $content = $cache;
@ -155,6 +154,9 @@ final class DifferentialRevisionCommentView extends AphrontView {
'<div class="phabricator-remarkup">'. '<div class="phabricator-remarkup">'.
$content. $content.
'</div>'; '</div>';
}
if (strlen(rtrim($content)) || $this->inlines) {
$title = "{$author_link} {$verb} this revision:";
} else { } else {
$title = null; $title = null;
$head_content = $head_content =