Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | if (PhabricatorEnv::isReadOnly()) { | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'read-only-warning', | 'read-only-warning', | ||||
array( | array( | ||||
'message' => PhabricatorEnv::getReadOnlyMessage(), | 'message' => PhabricatorEnv::getReadOnlyMessage(), | ||||
'uri' => PhabricatorEnv::getReadOnlyURI(), | 'uri' => PhabricatorEnv::getReadOnlyURI(), | ||||
)); | )); | ||||
} | } | ||||
// If we aren't showing the page chrome, skip rendering DarkConsole and the | |||||
// main menu, since they won't be visible on the page. | |||||
if (!$this->getShowChrome()) { | |||||
return; | |||||
} | |||||
if ($console) { | if ($console) { | ||||
require_celerity_resource('aphront-dark-console-css'); | require_celerity_resource('aphront-dark-console-css'); | ||||
$headers = array(); | $headers = array(); | ||||
if (DarkConsoleXHProfPluginAPI::isProfilerStarted()) { | if (DarkConsoleXHProfPluginAPI::isProfilerStarted()) { | ||||
$headers[DarkConsoleXHProfPluginAPI::getProfilerHeader()] = 'page'; | $headers[DarkConsoleXHProfPluginAPI::getProfilerHeader()] = 'page'; | ||||
} | } | ||||
if (DarkConsoleServicesPlugin::isQueryAnalyzerRequested()) { | if (DarkConsoleServicesPlugin::isQueryAnalyzerRequested()) { | ||||
Show All 27 Lines | if ($application_menu) { | ||||
} | } | ||||
$application_menu = $application_menu->buildListView(); | $application_menu = $application_menu->buildListView(); | ||||
} | } | ||||
$menu->setApplicationMenu($application_menu); | $menu->setApplicationMenu($application_menu); | ||||
} | } | ||||
$this->menuContent = $menu->render(); | $this->menuContent = $menu->render(); | ||||
} | } | ||||
protected function getHead() { | protected function getHead() { | ||||
$monospaced = null; | $monospaced = null; | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
▲ Show 20 Lines • Show All 535 Lines • Show Last 20 Lines |