Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTransaction.php
| Show First 20 Lines • Show All 625 Lines • ▼ Show 20 Lines | public function hasChangeDetails() { | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_DESCRIPTION: | case self::TYPE_DESCRIPTION: | ||||
| return true; | return true; | ||||
| } | } | ||||
| return parent::hasChangeDetails(); | return parent::hasChangeDetails(); | ||||
| } | } | ||||
| public function renderChangeDetails(PhabricatorUser $viewer) { | public function renderChangeDetails(PhabricatorUser $viewer) { | ||||
| $old = $this->getOldValue(); | return $this->renderTextCorpusChangeDetails( | ||||
| $new = $this->getNewValue(); | $viewer, | ||||
| $this->getOldValue(), | |||||
| require_celerity_resource('differential-changeset-view-css'); | $this->getNewValue()); | ||||
| $view = id(new PhabricatorApplicationTransactionTextDiffDetailView()) | |||||
| ->setUser($viewer) | |||||
| ->setOldText($old) | |||||
| ->setNewText($new); | |||||
| return $view->render(); | |||||
| } | } | ||||
| public function getMailTags() { | public function getMailTags() { | ||||
| $tags = array(); | $tags = array(); | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_STATUS: | case self::TYPE_STATUS: | ||||
| $tags[] = MetaMTANotificationType::TYPE_MANIPHEST_STATUS; | $tags[] = MetaMTANotificationType::TYPE_MANIPHEST_STATUS; | ||||
| break; | break; | ||||
| Show All 25 Lines | |||||