More NUX states
Summary: Ref T10032, adds "Basic" NUX to more applications. Test Plan: Visit each with ?nux=true and click on the create link. T10032 is tracking which apps need general modernization to pick up these changes. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T10032 Differential Revision: https://secure.phabricator.com/D14847
This commit is contained in:
@@ -334,4 +334,24 @@ final class DifferentialRevisionSearchEngine
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected function getNewUserBody() {
|
||||
$create_button = id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setText(pht('Create a Diff'))
|
||||
->setHref('/differential/diff/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
->setTitle(pht('Welcome to %s', $app_name))
|
||||
->setDescription(
|
||||
pht('Pre-commit code review. Revisions that are waiting on your input '.
|
||||
'will appear here.'))
|
||||
->addAction($create_button);
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user