mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 16:30:59 +01:00
Show host information on setup issue screen
Summary: Ref T3780. Facebook has some environmental / itermittent stuff which would be easier to debug with host information on the setup issue screen. Test Plan: Checked both in-chrome and out-of-chrome versions of this screen, both looked reasonable. {F56694} Reviewers: wez, btrahan Reviewed By: btrahan CC: chad, aran Maniphest Tasks: T3780 Differential Revision: https://secure.phabricator.com/D6842
This commit is contained in:
parent
f1c75a6382
commit
eb32b5c812
2 changed files with 31 additions and 3 deletions
|
@ -116,7 +116,7 @@ final class PhabricatorSetupIssueView extends AphrontView {
|
|||
),
|
||||
$issue->getName());
|
||||
|
||||
return phutil_tag(
|
||||
$issue = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue',
|
||||
|
@ -126,6 +126,23 @@ final class PhabricatorSetupIssueView extends AphrontView {
|
|||
$description,
|
||||
$next,
|
||||
));
|
||||
|
||||
$debug_info = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-debug',
|
||||
),
|
||||
pht('Host: %s', php_uname('n')));
|
||||
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'setup-issue-shell',
|
||||
),
|
||||
array(
|
||||
$issue,
|
||||
$debug_info,
|
||||
));
|
||||
}
|
||||
|
||||
private function renderPhabricatorConfig(array $configs, $related = false) {
|
||||
|
|
|
@ -8,10 +8,14 @@
|
|||
padding: 1em 0;
|
||||
}
|
||||
|
||||
.setup-issue-shell {
|
||||
max-width: 760px;
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
|
||||
.setup-issue {
|
||||
border: 1px solid #35393d;
|
||||
margin: 15px auto;
|
||||
max-width: 760px;
|
||||
background: #ffffff;
|
||||
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
@ -95,3 +99,10 @@
|
|||
margin: 1em auto;
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
.setup-issue-debug {
|
||||
margin-top: 8px;
|
||||
padding: 4px;
|
||||
text-align: right;
|
||||
color: #666666;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue