Differential D18182 Diff 43743 src/applications/phame/controller/post/PhamePostArchiveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/post/PhamePostArchiveController.php
| Show All 36 Lines | if ($request->isFormPost()) { | ||||
| ->applyTransactions($post, $xactions); | ->applyTransactions($post, $xactions); | ||||
| return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
| ->setURI($cancel_uri); | ->setURI($cancel_uri); | ||||
| } | } | ||||
| $title = pht('Archive Post'); | $title = pht('Archive Post'); | ||||
| $body = pht( | $body = pht( | ||||
| 'This post will revert to archived status and no longer be visible '. | 'If you archive this post, it will only be visible to users who can '. | ||||
| 'to other users or members of this blog.'); | 'edit %s.', | ||||
| $viewer->renderHandle($post->getBlogPHID())); | |||||
| $button = pht('Archive Post'); | $button = pht('Archive Post'); | ||||
| return $this->newDialog() | return $this->newDialog() | ||||
| ->setTitle($title) | ->setTitle($title) | ||||
| ->appendParagraph($body) | ->appendParagraph($body) | ||||
| ->addSubmitButton($button) | ->addSubmitButton($button) | ||||
| ->addCancelButton($cancel_uri); | ->addCancelButton($cancel_uri); | ||||
| } | } | ||||
| } | } | ||||