Differential D25096 Diff 458 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 533 Lines • ▼ Show 20 Lines | public function getToken() { | ||||
return array(null, null); | return array(null, null); | ||||
} | } | ||||
public function getColor() { | public function getColor() { | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case PhabricatorTransactions::TYPE_COMMENT; | case PhabricatorTransactions::TYPE_COMMENT; | ||||
$comment = $this->getComment(); | $comment = $this->getComment(); | ||||
if ($comment && $comment->getIsRemoved()) { | if ($comment && $comment->getIsRemoved()) { | ||||
return 'black'; | return 'grey'; | ||||
} | } | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
switch ($this->getMetadataValue('edge:type')) { | switch ($this->getMetadataValue('edge:type')) { | ||||
case DiffusionCommitRevertedByCommitEdgeType::EDGECONST: | case DiffusionCommitRevertedByCommitEdgeType::EDGECONST: | ||||
return 'pink'; | return 'pink'; | ||||
case DiffusionCommitRevertsCommitEdgeType::EDGECONST: | case DiffusionCommitRevertsCommitEdgeType::EDGECONST: | ||||
return 'sky'; | return 'sky'; | ||||
▲ Show 20 Lines • Show All 1,486 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0