Differential D20425 Diff 48780 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 328 Lines • ▼ Show 20 Lines | if (!$repository->isTracked()) { | ||||
| $header->setStatus('fa-ban', 'dark', pht('Inactive')); | $header->setStatus('fa-ban', 'dark', pht('Inactive')); | ||||
| } else if ($repository->isImporting()) { | } else if ($repository->isImporting()) { | ||||
| $ratio = $repository->loadImportProgress(); | $ratio = $repository->loadImportProgress(); | ||||
| $percentage = sprintf('%.2f%%', 100 * $ratio); | $percentage = sprintf('%.2f%%', 100 * $ratio); | ||||
| $header->setStatus( | $header->setStatus( | ||||
| 'fa-clock-o', | 'fa-clock-o', | ||||
| 'indigo', | 'indigo', | ||||
| pht('Importing (%s)...', $percentage)); | pht('Importing (%s)...', $percentage)); | ||||
| } else if ($repository->isPublishingDisabled()) { | |||||
| $header->setStatus('fa-minus', 'bluegrey', pht('Publishing Disabled')); | |||||
| } else { | } else { | ||||
| $header->setStatus('fa-check', 'bluegrey', pht('Active')); | $header->setStatus('fa-check', 'bluegrey', pht('Active')); | ||||
| } | } | ||||
| if (!$repository->isSVN()) { | if (!$repository->isSVN()) { | ||||
| $default = $repository->getDefaultBranch(); | $default = $repository->getDefaultBranch(); | ||||
| if ($default != $drequest->getBranch()) { | if ($default != $drequest->getBranch()) { | ||||
| $branch_tag = $this->renderBranchTag($drequest); | $branch_tag = $this->renderBranchTag($drequest); | ||||
| ▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines | |||||