Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioTransaction.php
| Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | public function renderChangeDetails(PhabricatorUser $viewer) { | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| if ($this->getTransactionType() == | if ($this->getTransactionType() == | ||||
| PholioTransactionType::TYPE_IMAGE_DESCRIPTION) { | PholioTransactionType::TYPE_IMAGE_DESCRIPTION) { | ||||
| $old = reset($old); | $old = reset($old); | ||||
| $new = reset($new); | $new = reset($new); | ||||
| } | } | ||||
| $view = id(new PhabricatorApplicationTransactionTextDiffDetailView()) | return $this->renderTextCorpusChangeDetails( | ||||
| ->setUser($viewer) | $viewer, | ||||
| ->setOldText($old) | $old, | ||||
| ->setNewText($new); | $new); | ||||
| return $view->render(); | |||||
| } | } | ||||
| 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 PholioTransactionType::TYPE_NAME: | case PholioTransactionType::TYPE_NAME: | ||||
| Show All 38 Lines | |||||