diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php index a99a593b15..2db9189c63 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileController.php @@ -237,21 +237,31 @@ final class PhabricatorProjectProfileController ->setObject($project) ->setActionList($actions); - $view->addCustomTextContent( - array( - PhabricatorMarkupEngine::renderOneObject( - id(new PhabricatorMarkupOneOff()) - ->setPreserveLinebreaks(true) - ->setContent($profile->getBlurb()), - 'default', - $viewer), + $blurb = $profile->getBlurb(); + $text = array(); - phutil_tag('br'), - phutil_tag('div', array('class' => 'phui-property-list-section-header'), pht('Members')), - phutil_tag('div', array('class' => 'phui-property-list-text-content'), - $project->getMemberPHIDs() - ? $this->renderHandlesForPHIDs($project->getMemberPHIDs(), ',') - : phutil_tag('em', array(), pht('None'))))); + if ($blurb) { + $text[] = PhabricatorMarkupEngine::renderOneObject( + id(new PhabricatorMarkupOneOff()) + ->setPreserveLinebreaks(true) + ->setContent($blurb), + 'default', + $viewer); + } else { + $text[] = phutil_tag('div', array(), phutil_tag('em', array(), pht('No Description'))); + } + + if($project->getMemberPHIDs()) { + $text[] = phutil_tag('br'); + $text[] = phutil_tag('div', + array('class' => 'phui-property-list-section-header'), + pht('Members')); + $text[] = phutil_tag('div', + array('class' => 'phui-property-list-text-content'), + $this->renderHandlesForPHIDs($project->getMemberPHIDs(), ',')); + } + + $view->addCustomTextContent($text); return $view; }