Differential D11146 Diff 26769 src/applications/dashboard/storage/PhabricatorDashboardTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboardTransaction.php
Show All 36 Lines | switch ($type) { | ||||
$old, | $old, | ||||
$new); | $new); | ||||
} | } | ||||
} | } | ||||
return parent::getTitle(); | return parent::getTitle(); | ||||
} | } | ||||
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 All 11 Lines | switch ($type) { | ||||
'%s renamed dashboard %s from "%s" to "%s".', | '%s renamed dashboard %s from "%s" to "%s".', | ||||
$author_link, | $author_link, | ||||
$object_link, | $object_link, | ||||
$old, | $old, | ||||
$new); | $new); | ||||
} | } | ||||
} | } | ||||
return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
} | } | ||||
public function getColor() { | public function getColor() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_NAME: | case self::TYPE_NAME: | ||||
Show All 20 Lines |