mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Give removed comments a special icon
Summary: Ref T4909. Test Plan: {F150659} Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T4909 Differential Revision: https://secure.phabricator.com/D8984
This commit is contained in:
parent
85bc05be25
commit
572089c936
1 changed files with 10 additions and 0 deletions
|
@ -340,6 +340,10 @@ abstract class PhabricatorApplicationTransaction
|
|||
public function getIcon() {
|
||||
switch ($this->getTransactionType()) {
|
||||
case PhabricatorTransactions::TYPE_COMMENT:
|
||||
$comment = $this->getComment();
|
||||
if ($comment && $comment->getIsRemoved()) {
|
||||
return 'fa-eraser';
|
||||
}
|
||||
return 'fa-comment';
|
||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||
return 'fa-envelope';
|
||||
|
@ -380,6 +384,12 @@ abstract class PhabricatorApplicationTransaction
|
|||
|
||||
public function getColor() {
|
||||
switch ($this->getTransactionType()) {
|
||||
case PhabricatorTransactions::TYPE_COMMENT;
|
||||
$comment = $this->getComment();
|
||||
if ($comment && $comment->getIsRemoved()) {
|
||||
return 'black';
|
||||
}
|
||||
break;
|
||||
case PhabricatorTransactions::TYPE_BUILDABLE:
|
||||
switch ($this->getNewValue()) {
|
||||
case HarbormasterBuildable::STATUS_PASSED:
|
||||
|
|
Loading…
Reference in a new issue