Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/query/PhabricatorBadgesSearchEngine.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | protected function renderResultList( | ||||
$result = new PhabricatorApplicationSearchResultView(); | $result = new PhabricatorApplicationSearchResultView(); | ||||
$result->setObjectList($list); | $result->setObjectList($list); | ||||
$result->setNoDataString(pht('No badges found.')); | $result->setNoDataString(pht('No badges found.')); | ||||
return $result; | return $result; | ||||
} | } | ||||
protected function getNewUserBody() { | |||||
$create_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('Create a Badge')) | |||||
->setHref('/badges/create/') | |||||
->setColor(PHUIButtonView::GREEN); | |||||
$icon = $this->getApplication()->getFontIcon(); | |||||
epriestley: You should be able to grab the icon with `$this->getApplication()->getFontIcon()`. | |||||
$app_name = $this->getApplication()->getName(); | |||||
$view = id(new PHUIBigInfoView()) | |||||
->setIcon($icon) | |||||
->setTitle(pht('Welcome to %s', $app_name)) | |||||
->setDescription( | |||||
pht('Badges let you award and distinguish special users '. | |||||
'throughout your instance.')) | |||||
->addAction($create_button); | |||||
return $view; | |||||
} | |||||
} | } |
You should be able to grab the icon with $this->getApplication()->getFontIcon().