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:
parent
32fc92bdb9
commit
28a5f9f44d
1 changed files with 3 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue