@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.

Add more information to Branch status page in Manage Repository

Summary: Adds an icon for default branch, status for branch status

Test Plan: Review `hg` and `git` repositories, change default branch, etc.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+21
+21
src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
··· 117 117 $tracking = $repository->shouldTrackBranch($branch_name); 118 118 $autoclosing = $repository->shouldAutocloseBranch($branch_name); 119 119 120 + $default = $repository->getDefaultBranch(); 121 + $icon = null; 122 + if ($default == $branch->getShortName()) { 123 + $icon = id(new PHUIIconView()) 124 + ->setIcon('fa-code-fork'); 125 + } 126 + 127 + $fields = $branch->getRawFields(); 128 + $closed = idx($fields, 'closed'); 129 + if ($closed) { 130 + $status = pht('Closed'); 131 + } else { 132 + $status = pht('Open'); 133 + } 134 + 120 135 $rows[] = array( 136 + $icon, 121 137 $branch_name, 122 138 $tracking ? pht('Tracking') : pht('Off'), 123 139 $autoclosing ? pht('Autoclose On') : pht('Off'), 140 + $status, 124 141 ); 125 142 } 126 143 $branch_table = new AphrontTableView($rows); 127 144 $branch_table->setHeaders( 128 145 array( 146 + '', 129 147 pht('Branch'), 130 148 pht('Track'), 131 149 pht('Autoclose'), 150 + pht('Status'), 132 151 )); 133 152 $branch_table->setColumnClasses( 134 153 array( 154 + '', 135 155 'pri', 156 + 'narrow', 136 157 'narrow', 137 158 'wide', 138 159 ));