Differential D17754 Diff 42702 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 348 Lines • ▼ Show 20 Lines | foreach ($uris as $uri) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if ($uri->getEffectiveDisplayType() == $display_never) { | if ($uri->getEffectiveDisplayType() == $display_never) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if ($repository->isSVN()) { | if ($repository->isSVN()) { | ||||
| $label = pht('Checkout'); | $label = phutil_tag_div('diffusion-clone-label', pht('Checkout')); | ||||
| } else { | } else { | ||||
| $label = pht('Clone'); | $label = phutil_tag_div('diffusion-clone-label', pht('Clone')); | ||||
| } | } | ||||
| $view->addProperty( | $view->addProperty( | ||||
| $label, | $label, | ||||
| $this->renderCloneURI($repository, $uri)); | $this->renderCloneURI($repository, $uri)); | ||||
| } | } | ||||
| $box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
| ▲ Show 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | private function buildBrowseTable( | ||||
| $header->addActionLink($button); | $header->addActionLink($button); | ||||
| $browse_panel->setHeader($header); | $browse_panel->setHeader($header); | ||||
| $browse_panel->setTable($browse_table); | $browse_panel->setTable($browse_table); | ||||
| $pager->setURI($browse_uri, 'offset'); | $pager->setURI($browse_uri, 'offset'); | ||||
| if ($pager->willShowPagingControls()) { | if ($pager->willShowPagingControls()) { | ||||
| $pager_box = $this->renderTablePagerBox($pager); | $browse_panel->setPager($pager); | ||||
| } else { | |||||
| $pager_box = null; | |||||
| } | } | ||||
| return array( | return $browse_panel; | ||||
| $browse_panel, | |||||
| $pager_box, | |||||
| ); | |||||
| } | } | ||||
| private function renderCloneURI( | private function renderCloneURI( | ||||
| PhabricatorRepository $repository, | PhabricatorRepository $repository, | ||||
| PhabricatorRepositoryURI $uri) { | PhabricatorRepositoryURI $uri) { | ||||
| if ($repository->isSVN()) { | if ($repository->isSVN()) { | ||||
| $display = csprintf( | $display = csprintf( | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||