Differential D21787 Diff 51943 src/applications/people/controller/PhabricatorPeopleEmpowerController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleEmpowerController.php
Show All 38 Lines | if ($request->isFormOrHisecPost()) { | ||||
} | } | ||||
} | } | ||||
if ($user->getIsAdmin()) { | if ($user->getIsAdmin()) { | ||||
$title = pht('Remove as Administrator?'); | $title = pht('Remove as Administrator?'); | ||||
$short = pht('Remove Administrator'); | $short = pht('Remove Administrator'); | ||||
$body = pht( | $body = pht( | ||||
'Remove %s as an administrator? They will no longer be able to '. | 'Remove %s as an administrator? They will no longer be able to '. | ||||
'perform administrative functions on this Phabricator install.', | 'perform administrative functions on this server.', | ||||
phutil_tag('strong', array(), $user->getUsername())); | phutil_tag('strong', array(), $user->getUsername())); | ||||
$submit = pht('Remove Administrator'); | $submit = pht('Remove Administrator'); | ||||
} else { | } else { | ||||
$title = pht('Make Administrator?'); | $title = pht('Make Administrator?'); | ||||
$short = pht('Make Administrator'); | $short = pht('Make Administrator'); | ||||
$body = pht( | $body = pht( | ||||
'Empower %s as an administrator? They will be able to create users, '. | 'Empower %s as an administrator? They will be able to create users, '. | ||||
'approve users, make and remove administrators, delete accounts, and '. | 'approve users, make and remove administrators, delete accounts, and '. | ||||
'perform other administrative functions on this Phabricator install.', | 'perform other administrative functions on this server.', | ||||
phutil_tag('strong', array(), $user->getUsername())); | phutil_tag('strong', array(), $user->getUsername())); | ||||
$submit = pht('Make Administrator'); | $submit = pht('Make Administrator'); | ||||
} | } | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setValidationException($validation_exception) | ->setValidationException($validation_exception) | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setShortTitle($short) | ->setShortTitle($short) | ||||
->appendParagraph($body) | ->appendParagraph($body) | ||||
->addCancelButton($done_uri) | ->addCancelButton($done_uri) | ||||
->addSubmitButton($submit); | ->addSubmitButton($submit); | ||||
} | } | ||||
} | } |