Differential D13439 Diff 32531 src/applications/phriction/controller/PhrictionDocumentController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/controller/PhrictionDocumentController.php
Show All 38 Lines | public function processRequest() { | ||||
if (!$document) { | if (!$document) { | ||||
$document = PhrictionDocument::initializeNewDocument($user, $slug); | $document = PhrictionDocument::initializeNewDocument($user, $slug); | ||||
$create_uri = '/phriction/edit/?slug='.$slug; | $create_uri = '/phriction/edit/?slug='.$slug; | ||||
$notice = new PHUIInfoView(); | $notice = new PHUIInfoView(); | ||||
$notice->setSeverity(PHUIInfoView::SEVERITY_NODATA); | $notice->setSeverity(PHUIInfoView::SEVERITY_WARNING); | ||||
$notice->setTitle(pht('No content here!')); | $notice->setTitle(pht('No content here!')); | ||||
$notice->appendChild( | $notice->appendChild( | ||||
pht( | pht( | ||||
'No document found at %s. You can <strong>'. | 'No document found at %s. You can <strong>'. | ||||
'<a href="%s">create a new document here</a></strong>.', | '<a href="%s">create a new document here</a></strong>.', | ||||
phutil_tag('tt', array(), $slug), | phutil_tag('tt', array(), $slug), | ||||
$create_uri)); | $create_uri)); | ||||
$core_content = $notice; | $core_content = $notice; | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |