Differential D14844 Diff 35879 src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | protected function renderResultList( | ||||
$result = new PhabricatorApplicationSearchResultView(); | $result = new PhabricatorApplicationSearchResultView(); | ||||
$result->setObjectList($list); | $result->setObjectList($list); | ||||
$result->setNoDataString(pht('No dashboards found.')); | $result->setNoDataString(pht('No dashboards found.')); | ||||
return $result; | return $result; | ||||
} | } | ||||
protected function getNewUserBody() { | |||||
$create_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('Create a Dashboard')) | |||||
->setHref('/dashboard/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('Customize your homepage with different panels and '. | |||||
'search queries.')) | |||||
->addAction($create_button); | |||||
return $view; | |||||
} | |||||
} | } |