Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | Javelin::initBehavior( | ||||
)); | )); | ||||
Javelin::initBehavior('device'); | Javelin::initBehavior('device'); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'high-security-warning', | 'high-security-warning', | ||||
$this->getHighSecurityWarningConfig()); | $this->getHighSecurityWarningConfig()); | ||||
if (PhabricatorEnv::isReadOnly()) { | |||||
Javelin::initBehavior( | |||||
'read-only-warning', | |||||
array( | |||||
'message' => pht('This install is currently in read-only mode.'), | |||||
)); | |||||
} | |||||
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 20 Lines • Show All 557 Lines • Show Last 20 Lines |