mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Revive added reviewers and ccs
Test Plan: Display revision with added reviewers. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1598
This commit is contained in:
parent
c53ebcec6b
commit
cd22d837cb
1 changed files with 5 additions and 5 deletions
|
@ -135,7 +135,9 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
|
|
||||||
$content = $comment->getContent();
|
$content = $comment->getContent();
|
||||||
$head_content = null;
|
$head_content = null;
|
||||||
|
$hide_comments = true;
|
||||||
if (strlen(rtrim($content))) {
|
if (strlen(rtrim($content))) {
|
||||||
|
$hide_comments = false;
|
||||||
$cache = $comment->getCache();
|
$cache = $comment->getCache();
|
||||||
if (strlen($cache)) {
|
if (strlen($cache)) {
|
||||||
$content = $cache;
|
$content = $cache;
|
||||||
|
@ -156,13 +158,9 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = "{$author_link} {$verb} this revision.";
|
$title = "{$author_link} {$verb} this revision.";
|
||||||
if (strlen(rtrim($content)) || $this->inlines) {
|
|
||||||
$hide_comments_class = null;
|
|
||||||
} else {
|
|
||||||
$hide_comments_class = 'hide';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->inlines) {
|
if ($this->inlines) {
|
||||||
|
$hide_comments = false;
|
||||||
$inline_render = array();
|
$inline_render = array();
|
||||||
$inlines = $this->inlines;
|
$inlines = $this->inlines;
|
||||||
$changesets = $this->changesets;
|
$changesets = $this->changesets;
|
||||||
|
@ -310,6 +308,7 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($metadata_blocks) {
|
if ($metadata_blocks) {
|
||||||
|
$hide_comments = false;
|
||||||
$metadata_blocks =
|
$metadata_blocks =
|
||||||
'<div class="differential-comment-metadata">'.
|
'<div class="differential-comment-metadata">'.
|
||||||
implode("\n", $metadata_blocks).
|
implode("\n", $metadata_blocks).
|
||||||
|
@ -318,6 +317,7 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
$metadata_blocks = null;
|
$metadata_blocks = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$hide_comments_class = ($hide_comments ? 'hide' : '');
|
||||||
return phutil_render_tag(
|
return phutil_render_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in a new issue