diff --git a/src/applications/differential/view/DifferentialRevisionListView.php b/src/applications/differential/view/DifferentialRevisionListView.php index e5015b0bee..2c73686fa2 100644 --- a/src/applications/differential/view/DifferentialRevisionListView.php +++ b/src/applications/differential/view/DifferentialRevisionListView.php @@ -23,6 +23,7 @@ final class DifferentialRevisionListView extends AphrontView { private $revisions; private $flags = array(); + private $drafts = array(); private $handles; private $user; private $fields; @@ -84,6 +85,11 @@ final class DifferentialRevisionListView extends AphrontView { ->withObjectPHIDs(mpull($this->revisions, 'getPHID')) ->execute(); + $this->drafts = id(new DifferentialRevisionQuery()) + ->withIDs(mpull($this->revisions, 'getID')) + ->withDraftRepliesByAuthors(array($user->getPHID())) + ->execute(); + return $this; } @@ -135,7 +141,23 @@ final class DifferentialRevisionListView extends AphrontView { 'class' => 'phabricator-flag-icon '.$class, ), ''); + + } else if (array_key_exists($revision->getID(), $this->drafts)) { + $src = '/rsrc/image/icon/fatcow/page_white_edit.png'; + $flag = + ''. + phutil_render_tag( + 'img', + array( + 'src' => celerity_get_resource_uri($src), + 'width' => 16, + 'height' => 16, + 'alt' => 'Draft', + 'title' => 'Draft Comment', + )). + ''; } + $row = array($flag); $modified = $revision->getDateModified(); diff --git a/webroot/rsrc/image/icon/fatcow/page_white_edit.png b/webroot/rsrc/image/icon/fatcow/page_white_edit.png new file mode 100644 index 0000000000..8bc294fa6a Binary files /dev/null and b/webroot/rsrc/image/icon/fatcow/page_white_edit.png differ