1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +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();
$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 =