Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectTransaction.php
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| return 'fa-tag'; | return 'fa-tag'; | ||||
| } | } | ||||
| return parent::getIcon(); | return parent::getIcon(); | ||||
| } | } | ||||
| public function getTitle() { | public function getTitle() { | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| $author_handle = $this->renderHandleLink($this->getAuthorPHID()); | $author_phid = $this->getAuthorPHID(); | ||||
| $author_handle = $this->renderHandleLink($author_phid); | |||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case PhabricatorTransactions::TYPE_CREATE: | |||||
| return pht( | |||||
| '%s created this project.', | |||||
| $this->renderHandleLink($author_phid)); | |||||
| case self::TYPE_NAME: | case self::TYPE_NAME: | ||||
| if ($old === null) { | if ($old === null) { | ||||
| return pht( | return pht( | ||||
| '%s created this project.', | '%s created this project.', | ||||
| $author_handle); | $author_handle); | ||||
| } else { | } else { | ||||
| return pht( | return pht( | ||||
| '%s renamed this project from "%s" to "%s".', | '%s renamed this project from "%s" to "%s".', | ||||
| ▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines | |||||