Page MenuHomePhabricator

D18444.id44316.diff
No OneTemporary

D18444.id44316.diff

diff --git a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
--- a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
+++ b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
@@ -110,6 +110,7 @@
->execute();
$branches = DiffusionRepositoryRef::loadAllFromDictionaries($branches);
$branches = $pager->sliceResults($branches);
+ $can_close_branches = ($repository->isHg());
$rows = array();
foreach ($branches as $branch) {
@@ -135,9 +136,9 @@
$rows[] = array(
$icon,
$branch_name,
+ $status,
$tracking ? pht('Tracking') : pht('Off'),
$autoclosing ? pht('Autoclose On') : pht('Off'),
- $status,
);
}
$branch_table = new AphrontTableView($rows);
@@ -145,9 +146,9 @@
array(
'',
pht('Branch'),
+ pht('Status'),
pht('Track'),
pht('Autoclose'),
- pht('Status'),
));
$branch_table->setColumnClasses(
array(
@@ -157,6 +158,14 @@
'narrow',
'wide',
));
+ $branch_table->setColumnVisibility(
+ array(
+ true,
+ true,
+ $can_close_branches,
+ true,
+ true,
+ ));
$box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Branch Status'))

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 7:53 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719882
Default Alt Text
D18444.id44316.diff (1 KB)

Event Timeline