Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/query/PonderQuestionSearchEngine.php
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | foreach ($questions as $question) { | ||||
$created_date = phabricator_date($question->getDateCreated(), $viewer); | $created_date = phabricator_date($question->getDateCreated(), $viewer); | ||||
$item->addIcon('none', $created_date); | $item->addIcon('none', $created_date); | ||||
$item->addByline( | $item->addByline( | ||||
pht( | pht( | ||||
'Asked by %s', | 'Asked by %s', | ||||
$handles[$question->getAuthorPHID()]->renderLink())); | $handles[$question->getAuthorPHID()]->renderLink())); | ||||
// Render Closed Questions as striked in query results | |||||
$item->setDisabled($question->isStatusClosed()); | |||||
$item->addAttribute( | $item->addAttribute( | ||||
pht( | pht( | ||||
'%s Answer(s)', | '%s Answer(s)', | ||||
new PhutilNumber($question->getAnswerCount()))); | new PhutilNumber($question->getAnswerCount()))); | ||||
if ($project_handles) { | if ($project_handles) { | ||||
$item->addAttribute( | $item->addAttribute( | ||||
id(new PHUIHandleTagListView()) | id(new PHUIHandleTagListView()) | ||||
Show All 35 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0