Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/query/ReleephBranchSearchEngine.php
| Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | foreach ($branches as $branch) { | ||||
| phabricator_datetime($commit->getEpoch(), $viewer)); | phabricator_datetime($commit->getEpoch(), $viewer)); | ||||
| } | } | ||||
| $open_count = count(idx($requests, $branch->getID(), array())); | $open_count = count(idx($requests, $branch->getID(), array())); | ||||
| if ($open_count) { | if ($open_count) { | ||||
| $item->setStatusIcon('fa-code-fork orange'); | $item->setStatusIcon('fa-code-fork orange'); | ||||
| $item->addIcon( | $item->addIcon( | ||||
| 'fa-code-fork', | 'fa-code-fork', | ||||
| pht('%d Open Pull Request(s)', new PhutilNumber($open_count))); | pht( | ||||
| '%s Open Pull Request(s)', | |||||
| new PhutilNumber($open_count))); | |||||
| } | } | ||||
| $list->addItem($item); | $list->addItem($item); | ||||
| } | } | ||||
| return id(new PhabricatorApplicationSearchResultView()) | return id(new PhabricatorApplicationSearchResultView()) | ||||
| ->setObjectList($list); | ->setObjectList($list); | ||||
| } | } | ||||
| } | } | ||||