Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13965311
D13603.id32875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13603.id32875.diff
View Options
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php
@@ -227,17 +227,9 @@
$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 @@
}
}
+ $view->invokeWillRenderEvent();
+
$description = $repository->getDetail('description');
if (strlen($description)) {
$description = PhabricatorMarkupEngine::renderOneObject(
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
@@ -264,6 +264,7 @@
$view = id(new PHUIPropertyListView())
->setUser($viewer)
+ ->setObject($repository)
->setActionList($actions);
$type = PhabricatorRepositoryType::getNameForRepositoryType(
@@ -272,7 +273,6 @@
$view->addProperty(pht('Type'), $type);
$view->addProperty(pht('Callsign'), $repository->getCallsign());
-
$clone_name = $repository->getDetail('clone-name');
if ($repository->isHosted()) {
@@ -283,17 +283,7 @@
: phutil_tag('em', array(), $repository->getCloneName().'/'));
}
- $project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(
- $repository->getPHID(),
- PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
- if ($project_phids) {
- $project_text = $viewer->renderHandleList($project_phids);
- } else {
- $project_text = phutil_tag('em', array(), pht('None'));
- }
- $view->addProperty(
- pht('Projects'),
- $project_text);
+ $view->invokeWillRenderEvent();
$view->addProperty(
pht('Status'),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 1:14 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719980
Default Alt Text
D13603.id32875.diff (2 KB)
Attached To
Mode
D13603: Use standard project rendering in Diffusion
Attached
Detach File
Event Timeline
Log In to Comment