@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add icons/colors to Audit transactions

Summary: Fixes T10616. Adds additional colors, icons, to Audit transactions

Test Plan: Mess with various Audit states.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T10616

Differential Revision: https://secure.phabricator.com/D15490

+25
+25
src/applications/audit/storage/PhabricatorAuditTransaction.php
··· 117 117 return 'red'; 118 118 case PhabricatorAuditActionConstants::ACCEPT: 119 119 return 'green'; 120 + case PhabricatorAuditActionConstants::RESIGN: 121 + return 'black'; 122 + case PhabricatorAuditActionConstants::CLOSE: 123 + return 'indigo'; 120 124 } 121 125 } 122 126 123 127 return parent::getColor(); 128 + } 129 + 130 + public function getIcon() { 131 + 132 + $type = $this->getTransactionType(); 133 + 134 + switch ($type) { 135 + case PhabricatorAuditActionConstants::ACTION: 136 + switch ($this->getNewValue()) { 137 + case PhabricatorAuditActionConstants::CONCERN: 138 + return 'fa-exclamation-circle'; 139 + case PhabricatorAuditActionConstants::ACCEPT: 140 + return 'fa-check'; 141 + case PhabricatorAuditActionConstants::RESIGN: 142 + return 'fa-plane'; 143 + case PhabricatorAuditActionConstants::CLOSE: 144 + return 'fa-check'; 145 + } 146 + } 147 + 148 + return parent::getIcon(); 124 149 } 125 150 126 151 public function getTitle() {