Use standard project rendering in Diffusion

Summary: Fixes T8791.

Test Plan: {F599915}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T8791

Differential Revision: https://secure.phabricator.com/D13603
This commit is contained in:
epriestley
2015-07-08 07:00:17 -07:00
parent 0036670329
commit 50491d2057
2 changed files with 5 additions and 21 deletions

View File

@@ -227,17 +227,9 @@ final class DiffusionRepositoryController extends DiffusionController {
$actions = $this->buildActionList($repository);
$view = id(new PHUIPropertyListView())
->setObject($repository)
->setUser($user);
$project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(
$repository->getPHID(),
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
if ($project_phids) {
$view->addProperty(
pht('Projects'),
$user->renderHandleList($project_phids));
}
if ($repository->isHosted()) {
$ssh_uri = $repository->getSSHCloneURIObject();
if ($ssh_uri) {
@@ -290,6 +282,8 @@ final class DiffusionRepositoryController extends DiffusionController {
}
}
$view->invokeWillRenderEvent();
$description = $repository->getDetail('description');
if (strlen($description)) {
$description = PhabricatorMarkupEngine::renderOneObject(