diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 3932c6a4c1..c4771045bb 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -845,6 +845,7 @@ phutil_register_library_map(array( 'DoorkeeperBridgeGitHubIssue' => 'applications/doorkeeper/bridge/DoorkeeperBridgeGitHubIssue.php', 'DoorkeeperBridgeJIRA' => 'applications/doorkeeper/bridge/DoorkeeperBridgeJIRA.php', 'DoorkeeperBridgeJIRATestCase' => 'applications/doorkeeper/bridge/__tests__/DoorkeeperBridgeJIRATestCase.php', + 'DoorkeeperBridgedObjectCurtainExtension' => 'applications/doorkeeper/engineextension/DoorkeeperBridgedObjectCurtainExtension.php', 'DoorkeeperBridgedObjectInterface' => 'applications/doorkeeper/bridge/DoorkeeperBridgedObjectInterface.php', 'DoorkeeperDAO' => 'applications/doorkeeper/storage/DoorkeeperDAO.php', 'DoorkeeperExternalObject' => 'applications/doorkeeper/storage/DoorkeeperExternalObject.php', @@ -5001,6 +5002,7 @@ phutil_register_library_map(array( 'DoorkeeperBridgeGitHubIssue' => 'DoorkeeperBridgeGitHub', 'DoorkeeperBridgeJIRA' => 'DoorkeeperBridge', 'DoorkeeperBridgeJIRATestCase' => 'PhabricatorTestCase', + 'DoorkeeperBridgedObjectCurtainExtension' => 'PHUICurtainExtension', 'DoorkeeperDAO' => 'PhabricatorLiskDAO', 'DoorkeeperExternalObject' => array( 'DoorkeeperDAO', diff --git a/src/applications/doorkeeper/engineextension/DoorkeeperBridgedObjectCurtainExtension.php b/src/applications/doorkeeper/engineextension/DoorkeeperBridgedObjectCurtainExtension.php new file mode 100644 index 0000000000..ae59440973 --- /dev/null +++ b/src/applications/doorkeeper/engineextension/DoorkeeperBridgedObjectCurtainExtension.php @@ -0,0 +1,31 @@ +getBridgedObject(); + if (!$xobj) { + return null; + } + + $tag = id(new DoorkeeperTagView()) + ->setExternalObject($xobj); + + return $this->newPanel() + ->setHeaderText(pht('Imported From')) + ->setOrder(5000) + ->appendChild($tag); + } + +}