1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Fix italics issue with nux state on homepage

Summary: We moved to having "no data" strings render in italics, but sometimes it doesn't make sense. This renders out the panel a little more expected.

Test Plan: Clean install of Phabricator, read home page activity box.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D17415
This commit is contained in:
Chad Little 2017-02-25 13:06:34 -08:00
parent c15501fc9b
commit 59207fcfac

View file

@ -184,12 +184,18 @@ Welcome to Phabricator, here are some links to get you started:
EOT
);
}
$welcome = new PHUIRemarkupView($viewer, $content);
$list = new PHUIObjectItemListView();
$view = new PhabricatorApplicationSearchResultView();
$view->setObjectList($list);
$view->setNoDataString($welcome);
if ($results) {
$list = new PHUIObjectItemListView();
$view = new PhabricatorApplicationSearchResultView();
$view->setObjectList($list);
} else {
$content = id(new PHUIBoxView())
->appendChild(new PHUIRemarkupView($viewer, $content))
->addClass('mlt mlb msr msl');
$view = new PhabricatorApplicationSearchResultView();
$view->setContent($content);
}
}
$title = pht('Recent Activity');