Differential D9085 Diff 21591 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if ($browse_results) { | ||||
'diffusion.readmequery', | 'diffusion.readmequery', | ||||
array( | array( | ||||
'paths' => $browse_results->getPathDicts() | 'paths' => $browse_results->getPathDicts() | ||||
)); | )); | ||||
} else { | } else { | ||||
$readme = null; | $readme = null; | ||||
} | } | ||||
$content[] = $this->buildHistoryTable( | |||||
$history_results, | |||||
$history, | |||||
$history_exception, | |||||
$handles); | |||||
$content[] = $this->buildBrowseTable( | $content[] = $this->buildBrowseTable( | ||||
$browse_results, | $browse_results, | ||||
$browse_paths, | $browse_paths, | ||||
$browse_exception, | $browse_exception, | ||||
$handles); | $handles); | ||||
$content[] = $this->buildHistoryTable( | |||||
$history_results, | |||||
$history, | |||||
$history_exception, | |||||
$handles); | |||||
try { | try { | ||||
$content[] = $this->buildTagListTable($drequest); | $content[] = $this->buildTagListTable($drequest); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
if (!$repository->isImporting()) { | if (!$repository->isImporting()) { | ||||
$content[] = $this->renderStatusMessage( | $content[] = $this->renderStatusMessage( | ||||
pht('Unable to Load Tags'), | pht('Unable to Load Tags'), | ||||
$ex->getMessage()); | $ex->getMessage()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if (!$repository->isTracked()) { | ||||
$header->setStatus('oh-ok', '', pht('Active')); | $header->setStatus('oh-ok', '', pht('Active')); | ||||
} | } | ||||
$actions = $this->buildActionList($repository); | $actions = $this->buildActionList($repository); | ||||
$view = id(new PHUIPropertyListView()) | $view = id(new PHUIPropertyListView()) | ||||
->setUser($user); | ->setUser($user); | ||||
$view->addProperty(pht('Callsign'), $repository->getCallsign()); | |||||
$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'), | ||||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |