Differential D17252 Diff 41494 src/applications/diffusion/xaction/DiffusionCommitStateTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/xaction/DiffusionCommitStateTransaction.php
| Show All 25 Lines | public function getTitle() { | ||||
| switch ($new) { | switch ($new) { | ||||
| case PhabricatorAuditCommitStatusConstants::NONE: | case PhabricatorAuditCommitStatusConstants::NONE: | ||||
| return pht('This commit no longer requires audit.'); | return pht('This commit no longer requires audit.'); | ||||
| case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: | case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: | ||||
| return pht('This commit now requires audit.'); | return pht('This commit now requires audit.'); | ||||
| case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: | case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: | ||||
| return pht('This commit now has outstanding concerns.'); | return pht('This commit now has outstanding concerns.'); | ||||
| case PhabricatorAuditCommitStatusConstants::NEEDS_VERIFICATION: | |||||
| return pht('This commit now requires verification by auditors.'); | |||||
| case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: | case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: | ||||
| return pht('All concerns with this commit have now been addressed.'); | return pht('All concerns with this commit have now been addressed.'); | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| public function getTitleForFeed() { | public function getTitleForFeed() { | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| switch ($new) { | switch ($new) { | ||||
| case PhabricatorAuditCommitStatusConstants::NONE: | case PhabricatorAuditCommitStatusConstants::NONE: | ||||
| return pht( | return pht( | ||||
| '%s no longer requires audit.', | '%s no longer requires audit.', | ||||
| $this->renderObject()); | $this->renderObject()); | ||||
| case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: | case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: | ||||
| return pht( | return pht( | ||||
| '%s now requires audit.', | '%s now requires audit.', | ||||
| $this->renderObject()); | $this->renderObject()); | ||||
| case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: | case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: | ||||
| return pht( | return pht( | ||||
| '%s now has outstanding concerns.', | '%s now has outstanding concerns.', | ||||
| $this->renderObject()); | $this->renderObject()); | ||||
| case PhabricatorAuditCommitStatusConstants::NEEDS_VERIFICATION: | |||||
| return pht( | |||||
| '%s now requires verification by auditors.', | |||||
| $this->renderObject()); | |||||
| case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: | case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: | ||||
| return pht( | return pht( | ||||
| 'All concerns with %s have now been addressed.', | 'All concerns with %s have now been addressed.', | ||||
| $this->renderObject()); | $this->renderObject()); | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| } | } | ||||