Differential D11146 Diff 26769 src/applications/dashboard/storage/PhabricatorDashboardPanelTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboardPanelTransaction.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
'%s activated this panel.', | '%s activated this panel.', | ||||
$author_link); | $author_link); | ||||
} | } | ||||
} | } | ||||
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 23 Lines | switch ($type) { | ||||
} else { | } else { | ||||
return pht( | return pht( | ||||
'%s activated dashboard panel %s.', | '%s activated dashboard panel %s.', | ||||
$author_link, | $author_link, | ||||
$object_link); | $object_link); | ||||
} | } | ||||
} | } | ||||
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 9 Lines |