3 final class FuelHandleListItemView
8 public function setHandle(PhabricatorObjectHandle
$handle) {
9 $this->handle
= $handle;
13 public function render() {
16 $cells[] = phutil_tag(
19 'class' => 'fuel-handle-list-item-cell fuel-handle-list-item-icon',
21 $this->newIconView());
23 $cells[] = phutil_tag(
26 'class' => 'fuel-handle-list-item-cell fuel-handle-list-item-handle',
28 $this->newHandleView());
30 $cells[] = phutil_tag(
33 'class' => 'fuel-handle-list-item-cell fuel-handle-list-item-note',
35 $this->newNoteView());
40 'class' => 'fuel-handle-list-item',
46 private function newIconView() {
51 $handle = $this->handle
;
53 $icon_image = $handle->getImageURI();
55 $icon_icon = $handle->getIcon();
56 $icon_color = $handle->getIconColor();
60 if ($icon_image === null && $icon_icon === null) {
64 $view = new PHUIIconView();
66 if ($icon_image !== null) {
67 $view->setImage($icon_image);
69 if ($icon_color === null) {
70 $icon_color = 'bluegrey';
73 if ($icon_icon !== null) {
74 $view->setIcon($icon_icon);
77 if ($icon_color !== null) {
78 $view->setColor($icon_color);
86 private function newHandleView() {
87 $handle = $this->handle
;
89 return $handle->renderLink();
95 private function newNoteView() {