Differential D19068 Diff 45711 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 1,230 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
} else { | } else { | ||||
return pht( | return pht( | ||||
'%s edited a custom field on %s.', | '%s edited a custom field on %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
} | } | ||||
case PhabricatorTransactions::TYPE_BUILDABLE: | case PhabricatorTransactions::TYPE_BUILDABLE: | ||||
switch ($this->getNewValue()) { | switch ($this->getNewValue()) { | ||||
case HarbormasterBuildable::STATUS_BUILDING: | case HarbormasterBuildableStatus::STATUS_BUILDING: | ||||
return pht( | return pht( | ||||
'%s started building %s for %s.', | '%s started building %s for %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink( | $this->renderHandleLink( | ||||
$this->getMetadataValue('harbormaster:buildablePHID')), | $this->getMetadataValue('harbormaster:buildablePHID')), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
case HarbormasterBuildable::STATUS_PASSED: | case HarbormasterBuildableStatus::STATUS_PASSED: | ||||
return pht( | return pht( | ||||
'%s completed building %s for %s.', | '%s completed building %s for %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink( | $this->renderHandleLink( | ||||
$this->getMetadataValue('harbormaster:buildablePHID')), | $this->getMetadataValue('harbormaster:buildablePHID')), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
case HarbormasterBuildable::STATUS_FAILED: | case HarbormasterBuildableStatus::STATUS_FAILED: | ||||
return pht( | return pht( | ||||
'%s failed to build %s for %s.', | '%s failed to build %s for %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink( | $this->renderHandleLink( | ||||
$this->getMetadataValue('harbormaster:buildablePHID')), | $this->getMetadataValue('harbormaster:buildablePHID')), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
default: | default: | ||||
return null; | return null; | ||||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
case PhabricatorTransactions::TYPE_VIEW_POLICY: | case PhabricatorTransactions::TYPE_VIEW_POLICY: | ||||
case PhabricatorTransactions::TYPE_EDIT_POLICY: | case PhabricatorTransactions::TYPE_EDIT_POLICY: | ||||
case PhabricatorTransactions::TYPE_JOIN_POLICY: | case PhabricatorTransactions::TYPE_JOIN_POLICY: | ||||
return pht('Changed Policy'); | return pht('Changed Policy'); | ||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
return pht('Changed Subscribers'); | return pht('Changed Subscribers'); | ||||
case PhabricatorTransactions::TYPE_BUILDABLE: | case PhabricatorTransactions::TYPE_BUILDABLE: | ||||
switch ($this->getNewValue()) { | switch ($this->getNewValue()) { | ||||
case HarbormasterBuildable::STATUS_PASSED: | case HarbormasterBuildableStatus::STATUS_PASSED: | ||||
return pht('Build Passed'); | return pht('Build Passed'); | ||||
case HarbormasterBuildable::STATUS_FAILED: | case HarbormasterBuildableStatus::STATUS_FAILED: | ||||
return pht('Build Failed'); | return pht('Build Failed'); | ||||
default: | default: | ||||
return pht('Build Status'); | return pht('Build Status'); | ||||
} | } | ||||
default: | default: | ||||
return pht('Updated'); | return pht('Updated'); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |