Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | if ($this->getMetadataValue('revisionMatchData')) { | ||||
'sigil' => 'workflow', | 'sigil' => 'workflow', | ||||
), | ), | ||||
pht('Explain Why')); | pht('Explain Why')); | ||||
return $details_link; | return $details_link; | ||||
} | } | ||||
return parent::renderExtraInformationLink(); | return parent::renderExtraInformationLink(); | ||||
} | } | ||||
public function getTitleForFeed(PhabricatorFeedStory $story) { | public function getTitleForFeed() { | ||||
$author_phid = $this->getAuthorPHID(); | $author_phid = $this->getAuthorPHID(); | ||||
$object_phid = $this->getObjectPHID(); | $object_phid = $this->getObjectPHID(); | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
$author_link = $this->renderHandleLink($author_phid); | $author_link = $this->renderHandleLink($author_phid); | ||||
$object_link = $this->renderHandleLink($object_phid); | $object_link = $this->renderHandleLink($object_phid); | ||||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
$object_link); | $object_link); | ||||
case ArcanistDifferentialRevisionStatus::NEEDS_REVIEW: | case ArcanistDifferentialRevisionStatus::NEEDS_REVIEW: | ||||
return pht( | return pht( | ||||
'%s now requires review to proceed.', | '%s now requires review to proceed.', | ||||
$object_link); | $object_link); | ||||
} | } | ||||
} | } | ||||
return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
} | } | ||||
public function getIcon() { | public function getIcon() { | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_INLINE: | case self::TYPE_INLINE: | ||||
return 'fa-comment'; | return 'fa-comment'; | ||||
case self::TYPE_UPDATE: | case self::TYPE_UPDATE: | ||||
return 'fa-refresh'; | return 'fa-refresh'; | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |