mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 02:31:10 +01:00
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
This commit is contained in:
parent
2b9d4f70ba
commit
76bfd91fd0
1 changed files with 25 additions and 0 deletions
|
@ -117,12 +117,37 @@ final class PhabricatorAuditTransaction
|
||||||
return 'red';
|
return 'red';
|
||||||
case PhabricatorAuditActionConstants::ACCEPT:
|
case PhabricatorAuditActionConstants::ACCEPT:
|
||||||
return 'green';
|
return 'green';
|
||||||
|
case PhabricatorAuditActionConstants::RESIGN:
|
||||||
|
return 'black';
|
||||||
|
case PhabricatorAuditActionConstants::CLOSE:
|
||||||
|
return 'indigo';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::getColor();
|
return parent::getColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getIcon() {
|
||||||
|
|
||||||
|
$type = $this->getTransactionType();
|
||||||
|
|
||||||
|
switch ($type) {
|
||||||
|
case PhabricatorAuditActionConstants::ACTION:
|
||||||
|
switch ($this->getNewValue()) {
|
||||||
|
case PhabricatorAuditActionConstants::CONCERN:
|
||||||
|
return 'fa-exclamation-circle';
|
||||||
|
case PhabricatorAuditActionConstants::ACCEPT:
|
||||||
|
return 'fa-check';
|
||||||
|
case PhabricatorAuditActionConstants::RESIGN:
|
||||||
|
return 'fa-plane';
|
||||||
|
case PhabricatorAuditActionConstants::CLOSE:
|
||||||
|
return 'fa-check';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return parent::getIcon();
|
||||||
|
}
|
||||||
|
|
||||||
public function getTitle() {
|
public function getTitle() {
|
||||||
$old = $this->getOldValue();
|
$old = $this->getOldValue();
|
||||||
$new = $this->getNewValue();
|
$new = $this->getNewValue();
|
||||||
|
|
Loading…
Reference in a new issue