Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionBranchTableView.php
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | foreach ($this->branches as $branch) { | ||||
| switch ($repository->shouldSkipAutocloseBranch($branch->getShortName())) { | switch ($repository->shouldSkipAutocloseBranch($branch->getShortName())) { | ||||
| case PhabricatorRepository::BECAUSE_REPOSITORY_IMPORTING: | case PhabricatorRepository::BECAUSE_REPOSITORY_IMPORTING: | ||||
| $icon = 'fa-times bluegrey'; | $icon = 'fa-times bluegrey'; | ||||
| $tip = pht('Repository Importing'); | $tip = pht('Repository Importing'); | ||||
| break; | break; | ||||
| case PhabricatorRepository::BECAUSE_AUTOCLOSE_DISABLED: | case PhabricatorRepository::BECAUSE_AUTOCLOSE_DISABLED: | ||||
| $icon = 'fa-times bluegrey'; | $icon = 'fa-times bluegrey'; | ||||
| $tip = pht('Repository Autoclose Disabled'); | $tip = pht('Repository Publishing Disabled'); | ||||
| break; | break; | ||||
| case PhabricatorRepository::BECAUSE_BRANCH_UNTRACKED: | case PhabricatorRepository::BECAUSE_BRANCH_UNTRACKED: | ||||
| $icon = 'fa-times bluegrey'; | $icon = 'fa-times bluegrey'; | ||||
| $tip = pht('Branch Untracked'); | $tip = pht('Branch Untracked'); | ||||
| break; | break; | ||||
| case PhabricatorRepository::BECAUSE_BRANCH_NOT_AUTOCLOSE: | case PhabricatorRepository::BECAUSE_BRANCH_NOT_AUTOCLOSE: | ||||
| $icon = 'fa-times bluegrey'; | $icon = 'fa-times bluegrey'; | ||||
| $tip = pht('Branch Autoclose Disabled'); | $tip = pht('Branch Not Permanent'); | ||||
| break; | break; | ||||
| case null: | case null: | ||||
| $icon = 'fa-check bluegrey'; | $icon = 'fa-check bluegrey'; | ||||
| $tip = pht('Autoclose Enabled'); | $tip = pht('Permanent Branch'); | ||||
| break; | break; | ||||
| default: | default: | ||||
| $icon = 'fa-question'; | $icon = 'fa-question'; | ||||
| $tip = pht('Status Unknown'); | $tip = pht('Status Unknown'); | ||||
| break; | break; | ||||
| } | } | ||||
| $status_icon = id(new PHUIIconView()) | $status_icon = id(new PHUIIconView()) | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||