private function renderAboutPage(PhabricatorProject $project, PhabricatorProjectProfile $profile) { $viewer = $this->getRequest()->getUser(); $blurb = $profile->getBlurb(); $blurb = phutil_escape_html($blurb); $blurb = str_replace("\n", '<br />', $blurb); $phids = array($project->getAuthorPHID()); $phids = array_unique($phids); $handles = id(new PhabricatorObjectHandleData($phids))->loadHandles(); $timestamp = phabricator_datetime($project->getDateCreated(), $viewer); $about = '<div class="phabricator-profile-info-group"> <h1 class="phabricator-profile-info-header">About</h1> <div class="phabricator-profile-info-pane"> <table class="phabricator-profile-info-table"> <tr> <th>Creator</th> <td>' . $handles[$project->getAuthorPHID()]->renderLink() . '</td> </tr> <tr> <th>Created</th> <td>' . $timestamp . '</td> </tr> <tr> <th>PHID</th> <td>' . phutil_escape_html($project->getPHID()) . '</td> </tr> <tr> <th>Blurb</th> <td>' . $blurb . '</td> </tr> </table> </div> </div>'; return $about; }