Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/post/PhamePostViewController.php
| Show All 38 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $document = id(new PHUIDocumentViewPro()) | $document = id(new PHUIDocumentViewPro()) | ||||
| ->setHeader($header) | ->setHeader($header) | ||||
| ->setPropertyList($properties); | ->setPropertyList($properties); | ||||
| if ($post->isDraft()) { | if ($post->isDraft()) { | ||||
| $document->appendChild( | $document->appendChild( | ||||
| id(new PHUIInfoView()) | id(new PHUIInfoView()) | ||||
| ->setSeverity(PHUIInfoView::SEVERITY_NOTICE) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
| ->setTitle(pht('Draft Post')) | ->setTitle(pht('Draft Post')) | ||||
| ->appendChild( | ->appendChild( | ||||
| pht( | pht( | ||||
| 'Only you can see this draft until you publish it. '. | 'Only members of this blog can see this draft until it is '. | ||||
| 'Use "Preview / Publish" to publish this post.'))); | 'published. Use "Preview / Publish" to publish this post.'))); | ||||
| } | } | ||||
| if (!$post->getBlog()) { | if (!$post->getBlog()) { | ||||
| $document->appendChild( | $document->appendChild( | ||||
| id(new PHUIInfoView()) | id(new PHUIInfoView()) | ||||
| ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
| ->setTitle(pht('Not On A Blog')) | ->setTitle(pht('Not On A Blog')) | ||||
| ->appendChild( | ->appendChild( | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||