mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30: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:
parent
c15501fc9b
commit
59207fcfac
1 changed files with 11 additions and 5 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue