mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +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() {
|
public function getIcon() {
|
||||||
switch ($this->getTransactionType()) {
|
switch ($this->getTransactionType()) {
|
||||||
case PhabricatorTransactions::TYPE_COMMENT:
|
case PhabricatorTransactions::TYPE_COMMENT:
|
||||||
|
$comment = $this->getComment();
|
||||||
|
if ($comment && $comment->getIsRemoved()) {
|
||||||
|
return 'fa-eraser';
|
||||||
|
}
|
||||||
return 'fa-comment';
|
return 'fa-comment';
|
||||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||||
return 'fa-envelope';
|
return 'fa-envelope';
|
||||||
|
@ -380,6 +384,12 @@ abstract class PhabricatorApplicationTransaction
|
||||||
|
|
||||||
public function getColor() {
|
public function getColor() {
|
||||||
switch ($this->getTransactionType()) {
|
switch ($this->getTransactionType()) {
|
||||||
|
case PhabricatorTransactions::TYPE_COMMENT;
|
||||||
|
$comment = $this->getComment();
|
||||||
|
if ($comment && $comment->getIsRemoved()) {
|
||||||
|
return 'black';
|
||||||
|
}
|
||||||
|
break;
|
||||||
case PhabricatorTransactions::TYPE_BUILDABLE:
|
case PhabricatorTransactions::TYPE_BUILDABLE:
|
||||||
switch ($this->getNewValue()) {
|
switch ($this->getNewValue()) {
|
||||||
case HarbormasterBuildable::STATUS_PASSED:
|
case HarbormasterBuildable::STATUS_PASSED:
|
||||||
|
|
Loading…
Reference in a new issue