Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') && | ||||
DarkConsoleErrorLogPluginAPI::getErrors()) { | DarkConsoleErrorLogPluginAPI::getErrors()) { | ||||
$developer_warning = phutil_tag_div( | $developer_warning = phutil_tag_div( | ||||
'aphront-developer-error-callout', | 'aphront-developer-error-callout', | ||||
pht( | pht( | ||||
'This page raised PHP errors. Find them in DarkConsole '. | 'This page raised PHP errors. Find them in DarkConsole '. | ||||
'or the error log.')); | 'or the error log.')); | ||||
} | } | ||||
// Render the "you have unresolved setup issues..." warning. | |||||
$setup_warning = null; | |||||
if ($user && $user->getIsAdmin()) { | |||||
$open = PhabricatorSetupCheck::getOpenSetupIssueKeys(); | |||||
if ($open) { | |||||
$classes[] = 'page-has-warning'; | |||||
$setup_warning = phutil_tag_div( | |||||
'setup-warning-callout', | |||||
phutil_tag( | |||||
'a', | |||||
array( | |||||
'href' => '/config/issue/', | |||||
'title' => implode(', ', $open), | |||||
), | |||||
pht('You have %d unresolved setup issue(s)...', count($open)))); | |||||
} | |||||
} | |||||
$main_page = phutil_tag( | $main_page = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => 'phabricator-standard-page', | 'id' => 'phabricator-standard-page', | ||||
'class' => 'phabricator-standard-page', | 'class' => 'phabricator-standard-page', | ||||
), | ), | ||||
array( | array( | ||||
$developer_warning, | $developer_warning, | ||||
$header_chrome, | $header_chrome, | ||||
$setup_warning, | |||||
phutil_tag( | phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => 'phabricator-standard-page-body', | 'id' => 'phabricator-standard-page-body', | ||||
'class' => 'phabricator-standard-page-body', | 'class' => 'phabricator-standard-page-body', | ||||
), | ), | ||||
$this->renderPageBodyContent()), | $this->renderPageBodyContent()), | ||||
)); | )); | ||||
▲ Show 20 Lines • Show All 403 Lines • Show Last 20 Lines |