private function newItem(AphrontRequest $request, $title, $done, $content) { $viewer = $request->getUser(); $box = new PHUIObjectBoxView(); $header = new PHUIActionHeaderView(); $header->setHeaderTitle($title); if ($done === true) { $box->setHeaderColor(PHUIActionHeaderView::HEADER_LIGHTGREEN); $header->addAction(id(new PHUIIconView())->setIconFont('fa-check')); } else { if ($done === false) { $box->setHeaderColor(PHUIActionHeaderView::HEADER_LIGHTVIOLET); $header->addAction(id(new PHUIIconView())->setIconFont('fa-exclamation')); } } $content = PhabricatorMarkupEngine::renderOneObject(id(new PhabricatorMarkupOneOff())->setContent($content), 'default', $viewer); $content = phutil_tag('div', array('class' => 'config-welcome-box-content'), $content); $box->setHeader($header); $box->appendChild($content); return $box; }