Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/query/PonderQuestionSearchEngine.php
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | protected function renderResultList( | ||||
$result = new PhabricatorApplicationSearchResultView(); | $result = new PhabricatorApplicationSearchResultView(); | ||||
$result->setObjectList($view); | $result->setObjectList($view); | ||||
$result->setNoDataString(pht('No questions found.')); | $result->setNoDataString(pht('No questions found.')); | ||||
return $result; | return $result; | ||||
} | } | ||||
protected function getNewUserBody() { | |||||
$create_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('Ask a Question')) | |||||
->setHref('/ponder/question/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('A simple questions and answers application for your teams.')) | |||||
->addAction($create_button); | |||||
return $view; | |||||
} | |||||
} | } |