handles = $handles; return $this; } public function addButton(PhabricatorObjectHandle $handle, $button) { $this->buttons[$handle->getPHID()][] = $button; return $this; } public function render() { $handles = $this->handles; require_celerity_resource('phabricator-object-list-view-css'); $out = array(); foreach ($handles as $handle) { $buttons = idx($this->buttons, $handle->getPHID(), array()); if ($buttons) { $buttons = '
'; } else { $buttons = null; } $out[] = javelin_render_tag( 'div', array( 'class' => 'phabricator-object-list-view-item', 'style' => 'background-image: url('.$handle->getImageURI().');', ), $handle->renderLink().$buttons); } return '