@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hide branch status if repository is not hg

Summary: Better table layouts here for branches view

Test Plan: Test git, hg repositories. See column go away.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18444

+11 -2
+11 -2
src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
··· 110 110 ->execute(); 111 111 $branches = DiffusionRepositoryRef::loadAllFromDictionaries($branches); 112 112 $branches = $pager->sliceResults($branches); 113 + $can_close_branches = ($repository->isHg()); 113 114 114 115 $rows = array(); 115 116 foreach ($branches as $branch) { ··· 135 136 $rows[] = array( 136 137 $icon, 137 138 $branch_name, 139 + $status, 138 140 $tracking ? pht('Tracking') : pht('Off'), 139 141 $autoclosing ? pht('Autoclose On') : pht('Off'), 140 - $status, 141 142 ); 142 143 } 143 144 $branch_table = new AphrontTableView($rows); ··· 145 146 array( 146 147 '', 147 148 pht('Branch'), 149 + pht('Status'), 148 150 pht('Track'), 149 151 pht('Autoclose'), 150 - pht('Status'), 151 152 )); 152 153 $branch_table->setColumnClasses( 153 154 array( ··· 156 157 'narrow', 157 158 'narrow', 158 159 'wide', 160 + )); 161 + $branch_table->setColumnVisibility( 162 + array( 163 + true, 164 + true, 165 + $can_close_branches, 166 + true, 167 + true, 159 168 )); 160 169 161 170 $box = id(new PHUIObjectBoxView())