Changeset View
Changeset View
Standalone View
Standalone View
src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php
| Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | public function hasChangeDetails() { | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case PhabricatorSlowvoteTransaction::TYPE_DESCRIPTION: | case PhabricatorSlowvoteTransaction::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($viewer); | ||||
| $new = $this->getNewValue(); | |||||
| $view = id(new PhabricatorApplicationTransactionTextDiffDetailView()) | |||||
| ->setUser($viewer) | |||||
| ->setOldText($old) | |||||
| ->setNewText($new); | |||||
| return $view->render(); | |||||
| } | } | ||||
| } | } | ||||