Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/controller/PhragmentRevertController.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public function createDialog( | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setTitle(pht('Really revert this fragment?')) | ->setTitle(pht('Really revert this fragment?')) | ||||
->setUser($this->getViewer()) | ->setUser($this->getViewer()) | ||||
->addSubmitButton(pht('Revert')) | ->addSubmitButton(pht('Revert')) | ||||
->addCancelButton(pht('Cancel')) | ->addCancelButton(pht('Cancel')) | ||||
->appendParagraph(pht( | ->appendParagraph(pht( | ||||
'Reverting this fragment to version %d will create a new version of '. | 'Reverting this fragment to version %d will create a new version of '. | ||||
'the fragment. It will not delete any version history.', | 'the fragment. It will not delete any version history.', | ||||
$version->getSequence(), | |||||
$version->getSequence())); | $version->getSequence())); | ||||
return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
} | } | ||||
} | } |