mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 22:40:55 +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
|
EOT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$welcome = new PHUIRemarkupView($viewer, $content);
|
|
||||||
|
|
||||||
|
if ($results) {
|
||||||
$list = new PHUIObjectItemListView();
|
$list = new PHUIObjectItemListView();
|
||||||
$view = new PhabricatorApplicationSearchResultView();
|
$view = new PhabricatorApplicationSearchResultView();
|
||||||
$view->setObjectList($list);
|
$view->setObjectList($list);
|
||||||
$view->setNoDataString($welcome);
|
} 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');
|
$title = pht('Recent Activity');
|
||||||
|
|
Loading…
Reference in a new issue