Differential D20895 Diff 49806 src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
Show All 17 Lines | public function shouldEnableForRepository( | ||||
return ($repository->isGit() || $repository->isHg()); | return ($repository->isGit() || $repository->isHg()); | ||||
} | } | ||||
public function getManagementPanelIcon() { | public function getManagementPanelIcon() { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
$has_any = | $has_any = | ||||
$repository->getDetail('default-branch') || | $repository->getDetail('default-branch') || | ||||
$repository->getFetchRules() || | |||||
$repository->getTrackOnlyRules() || | $repository->getTrackOnlyRules() || | ||||
$repository->getPermanentRefRules(); | $repository->getPermanentRefRules(); | ||||
if ($has_any) { | if ($has_any) { | ||||
return 'fa-code-fork'; | return 'fa-code-fork'; | ||||
} else { | } else { | ||||
return 'fa-code-fork grey'; | return 'fa-code-fork grey'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |