Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/controller/DivinerMainController.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if ($books) { | ||||
} | } | ||||
$list = id(new PHUIBoxView()) | $list = id(new PHUIBoxView()) | ||||
->addPadding(PHUI::PADDING_MEDIUM_TOP) | ->addPadding(PHUI::PADDING_MEDIUM_TOP) | ||||
->appendChild($list); | ->appendChild($list); | ||||
$document->appendChild($list); | $document->appendChild($list); | ||||
} else { | } else { | ||||
$text = pht( | $text = pht( | ||||
"(NOTE) **Looking for Phabricator documentation?** ". | "(NOTE) **Looking for documentation?** ". | ||||
"If you're looking for help and information about Phabricator, ". | "If you're looking for help and information about %s, ". | ||||
"you can [[https://secure.phabricator.com/diviner/ | ". | "you can [[https://secure.phabricator.com/diviner/ | ". | ||||
"browse the public Phabricator documentation]] on the live site.\n\n". | "browse the public %s documentation]] on the live site.\n\n". | ||||
"Diviner is the documentation generator used to build the ". | "Diviner is the documentation generator used to build this ". | ||||
"Phabricator documentation.\n\n". | "documentation.\n\n". | ||||
"You haven't generated any Diviner documentation books yet, so ". | "You haven't generated any Diviner documentation books yet, so ". | ||||
"there's nothing to show here. If you'd like to generate your own ". | "there's nothing to show here. If you'd like to generate your own ". | ||||
"local copy of the Phabricator documentation and have it appear ". | "local copy of the documentation and have it appear ". | ||||
"here, run this command:\n\n". | "here, run this command:\n\n". | ||||
" %s\n\n", | " %s\n\n", | ||||
'phabricator/ $ ./bin/diviner generate'); | PlatformSymbols::getPlatformServerName(), | ||||
PlatformSymbols::getPlatformServerName(), | |||||
'$ ./bin/diviner generate'); | |||||
$text = new PHUIRemarkupView($viewer, $text); | $text = new PHUIRemarkupView($viewer, $text); | ||||
$document->appendChild($text); | $document->appendChild($text); | ||||
} | } | ||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle(pht('Documentation Books')) | ->setTitle(pht('Documentation Books')) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->appendChild(array( | ->appendChild(array( | ||||
$document, | $document, | ||||
)); | )); | ||||
} | } | ||||
} | } |