Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/view/ManiphestTaskResultListView.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | foreach ($groups as $group => $list) { | ||||
| } | } | ||||
| $task_list->setUser($viewer); | $task_list->setUser($viewer); | ||||
| $task_list->setTasks($list); | $task_list->setTasks($list); | ||||
| $task_list->setHandles($handles); | $task_list->setHandles($handles); | ||||
| $header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
| ->addSigil('task-group') | ->addSigil('task-group') | ||||
| ->setMetadata(array('priority' => head($list)->getPriority())) | ->setMetadata(array('priority' => head($list)->getPriority())) | ||||
| ->setHeader(pht('%s (%s)', $group, new PhutilNumber(count($list)))); | ->setHeader(pht('%s (%s)', $group, phutil_count($list))); | ||||
| $lists[] = id(new PHUIObjectBoxView()) | $lists[] = id(new PHUIObjectBoxView()) | ||||
| ->setHeader($header) | ->setHeader($header) | ||||
| ->setObjectList($task_list); | ->setObjectList($task_list); | ||||
| } | } | ||||
| if ($can_drag) { | if ($can_drag) { | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||