Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/editor/PhabricatorPasteEditEngine.php
| Show All 32 Lines | final class PhabricatorPasteEditEngine | ||||
| protected function getObjectEditShortText($object) { | protected function getObjectEditShortText($object) { | ||||
| return $object->getMonogram(); | return $object->getMonogram(); | ||||
| } | } | ||||
| protected function getObjectCreateShortText() { | protected function getObjectCreateShortText() { | ||||
| return pht('Create Paste'); | return pht('Create Paste'); | ||||
| } | } | ||||
| protected function getCommentViewHeaderText($object) { | |||||
| $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | |||||
| if (!$is_serious) { | |||||
| return pht('Eat Paste'); | |||||
| } | |||||
| return parent::getCommentViewHeaderText($object); | |||||
| } | |||||
| protected function getObjectViewURI($object) { | protected function getObjectViewURI($object) { | ||||
| return '/P'.$object->getID(); | return '/P'.$object->getID(); | ||||
| } | } | ||||
| protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
| $langs = array( | $langs = array( | ||||
| '' => pht('(Detect From Filename in Title)'), | '' => pht('(Detect From Filename in Title)'), | ||||
| ) + PhabricatorEnv::getEnvConfig('pygments.dropdown-choices'); | ) + PhabricatorEnv::getEnvConfig('pygments.dropdown-choices'); | ||||
| Show All 39 Lines | |||||