When there are no setup issues, don't show a weird empty box
Summary: Ref T13189. When there are no setup issues, we currently double-render a weird setup issues box underneath the notice. Get rid of it. Test Plan: Viewed page with and without setup issues, saw less awkward UI. Reviewers: amckinley Maniphest Tasks: T13189 Differential Revision: https://secure.phabricator.com/D19609
This commit is contained in:
@@ -33,27 +33,26 @@ final class PhabricatorConfigIssueListController
|
|||||||
PhabricatorSetupCheck::GROUP_OTHER,
|
PhabricatorSetupCheck::GROUP_OTHER,
|
||||||
'fa-question-circle');
|
'fa-question-circle');
|
||||||
|
|
||||||
$no_issues = null;
|
$title = pht('Setup Issues');
|
||||||
if (empty($issues)) {
|
$header = $this->buildHeaderView($title);
|
||||||
$no_issues = id(new PHUIInfoView())
|
|
||||||
|
if (!$issues) {
|
||||||
|
$issue_list = id(new PHUIInfoView())
|
||||||
->setTitle(pht('No Issues'))
|
->setTitle(pht('No Issues'))
|
||||||
->appendChild(
|
->appendChild(
|
||||||
pht('Your install has no current setup issues to resolve.'))
|
pht('Your install has no current setup issues to resolve.'))
|
||||||
->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
||||||
|
} else {
|
||||||
|
$issue_list = array(
|
||||||
|
$important,
|
||||||
|
$php,
|
||||||
|
$mysql,
|
||||||
|
$other,
|
||||||
|
);
|
||||||
|
|
||||||
|
$issue_list = $this->buildConfigBoxView(pht('Issues'), $issue_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = pht('Setup Issues');
|
|
||||||
$header = $this->buildHeaderView($title);
|
|
||||||
|
|
||||||
$issue_list = array(
|
|
||||||
$important,
|
|
||||||
$php,
|
|
||||||
$mysql,
|
|
||||||
$other,
|
|
||||||
);
|
|
||||||
|
|
||||||
$issue_list = $this->buildConfigBoxView(pht('Issues'), $issue_list);
|
|
||||||
|
|
||||||
$crumbs = $this->buildApplicationCrumbs()
|
$crumbs = $this->buildApplicationCrumbs()
|
||||||
->addTextCrumb($title)
|
->addTextCrumb($title)
|
||||||
->setBorder(true);
|
->setBorder(true);
|
||||||
@@ -62,10 +61,7 @@ final class PhabricatorConfigIssueListController
|
|||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
->setNavigation($nav)
|
->setNavigation($nav)
|
||||||
->setFixed(true)
|
->setFixed(true)
|
||||||
->setMainColumn(array(
|
->setMainColumn($issue_list);
|
||||||
$no_issues,
|
|
||||||
$issue_list,
|
|
||||||
));
|
|
||||||
|
|
||||||
return $this->newPage()
|
return $this->newPage()
|
||||||
->setTitle($title)
|
->setTitle($title)
|
||||||
|
|||||||
Reference in New Issue
Block a user