Differential D14844 Diff 35879 src/applications/repository/query/PhabricatorRepositorySearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositorySearchEngine.php
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | protected function willUseSavedQuery(PhabricatorSavedQuery $saved) { | ||||
$any = $saved->getParameter('anyProjectPHIDs', array()); | $any = $saved->getParameter('anyProjectPHIDs', array()); | ||||
foreach ($any as $project) { | foreach ($any as $project) { | ||||
$project_phids[] = 'any('.$project.')'; | $project_phids[] = 'any('.$project.')'; | ||||
} | } | ||||
$saved->setParameter('projectPHIDs', $project_phids); | $saved->setParameter('projectPHIDs', $project_phids); | ||||
} | } | ||||
protected function getNewUserBody() { | |||||
$import_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('Import Repository')) | |||||
->setHref('/diffusion/import/') | |||||
->setColor(PHUIButtonView::GREEN); | |||||
$create_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('Create Repository')) | |||||
->setHref('/diffusion/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('Import, create, or just browse repositories in Diffusion.')) | |||||
epriestley: "just or browse" -> "or just browse"? | |||||
->addAction($import_button) | |||||
->addAction($create_button); | |||||
return $view; | |||||
} | |||||
} | } |
"just or browse" -> "or just browse"?