Differential D13059 Diff 31508 src/applications/releeph/controller/product/ReleephProductViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/controller/product/ReleephProductViewController.php
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | foreach ($branches as $branch) { | ||||
if ($commit) { | if ($commit) { | ||||
$item->addIcon( | $item->addIcon( | ||||
'none', | 'none', | ||||
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->setBarColor('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('%d Open Pull Request(s)', new PhutilNumber($open_count))); | ||||
} | } | ||||
$list->addItem($item); | $list->addItem($item); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |