Differential D8097 Diff 18346 src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | $view = id(new PHUIPropertyListView()) | ||||
->setActionList($actions); | ->setActionList($actions); | ||||
$type = PhabricatorRepositoryType::getNameForRepositoryType( | $type = PhabricatorRepositoryType::getNameForRepositoryType( | ||||
$repository->getVersionControlSystem()); | $repository->getVersionControlSystem()); | ||||
$view->addProperty(pht('Type'), $type); | $view->addProperty(pht('Type'), $type); | ||||
$view->addProperty(pht('Callsign'), $repository->getCallsign()); | $view->addProperty(pht('Callsign'), $repository->getCallsign()); | ||||
$clone_name = $repository->getDetail('clone-name'); | |||||
$view->addProperty( | |||||
pht('Clone/Checkout As'), | |||||
$clone_name | |||||
? $clone_name.'/' | |||||
: phutil_tag('em', array(), $repository->getCloneName().'/')); | |||||
$project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | $project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$repository->getPHID(), | $repository->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_OBJECT_HAS_PROJECT); | PhabricatorEdgeConfig::TYPE_OBJECT_HAS_PROJECT); | ||||
if ($project_phids) { | if ($project_phids) { | ||||
$this->loadHandles($project_phids); | $this->loadHandles($project_phids); | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Projects'), | pht('Projects'), | ||||
$this->renderHandlesForPHIDs($project_phids)); | $this->renderHandlesForPHIDs($project_phids)); | ||||
▲ Show 20 Lines • Show All 808 Lines • Show Last 20 Lines |