Differential D20299 Diff 48497 src/applications/project/order/PhabricatorProjectColumnStatusOrder.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/order/PhabricatorProjectColumnStatusOrder.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | foreach ($statuses as $status_key => $status_name) { | ||||
| ); | ); | ||||
| $status_icon = ManiphestTaskStatus::getStatusIcon($status_key); | $status_icon = ManiphestTaskStatus::getStatusIcon($status_key); | ||||
| $status_color = ManiphestTaskStatus::getStatusColor($status_key); | $status_color = ManiphestTaskStatus::getStatusColor($status_key); | ||||
| $icon_view = id(new PHUIIconView()) | $icon_view = id(new PHUIIconView()) | ||||
| ->setIcon($status_icon, $status_color); | ->setIcon($status_icon, $status_color); | ||||
| $drop_effect = $this->newEffect() | |||||
| ->setIcon($status_icon) | |||||
| ->setColor($status_color) | |||||
| ->setContent( | |||||
| pht( | |||||
| 'Change status to %s.', | |||||
| phutil_tag('strong', array(), $status_name))); | |||||
| $header = $this->newHeader() | $header = $this->newHeader() | ||||
| ->setHeaderKey($header_key) | ->setHeaderKey($header_key) | ||||
| ->setSortVector($sort_vector) | ->setSortVector($sort_vector) | ||||
| ->setName($status_name) | ->setName($status_name) | ||||
| ->setIcon($icon_view) | ->setIcon($icon_view) | ||||
| ->setEditProperties( | ->setEditProperties( | ||||
| array( | array( | ||||
| 'value' => $status_key, | 'value' => $status_key, | ||||
| )); | )) | ||||
| ->addDropEffect($drop_effect); | |||||
| $headers[] = $header; | $headers[] = $header; | ||||
| } | } | ||||
| return $headers; | return $headers; | ||||
| } | } | ||||
| protected function newColumnTransactions($object, array $header) { | protected function newColumnTransactions($object, array $header) { | ||||
| Show All 15 Lines | |||||