Differential D14073 Diff 34742 src/applications/legalpad/herald/LegalpadRequireSignatureHeraldAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/herald/LegalpadRequireSignatureHeraldAction.php
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | protected function getActionEffectMap() { | ||||
| ); | ); | ||||
| } | } | ||||
| protected function renderActionEffectDescription($type, $data) { | protected function renderActionEffectDescription($type, $data) { | ||||
| switch ($type) { | switch ($type) { | ||||
| case self::DO_SIGNED: | case self::DO_SIGNED: | ||||
| return pht( | return pht( | ||||
| '%s document(s) are already signed: %s.', | '%s document(s) are already signed: %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| case self::DO_REQUIRED: | case self::DO_REQUIRED: | ||||
| return pht( | return pht( | ||||
| 'Required %s signature(s): %s.', | 'Required %s signature(s): %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| } | } | ||||
| } | } | ||||
| public function getHeraldActionName() { | public function getHeraldActionName() { | ||||
| return pht('Require signatures'); | return pht('Require signatures'); | ||||
| } | } | ||||
| Show All 22 Lines | |||||