Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14001096
D18447.id44321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18447.id44321.diff
View Options
diff --git a/src/applications/diffusion/view/DiffusionBranchListView.php b/src/applications/diffusion/view/DiffusionBranchListView.php
--- a/src/applications/diffusion/view/DiffusionBranchListView.php
+++ b/src/applications/diffusion/view/DiffusionBranchListView.php
@@ -74,14 +74,6 @@
}
}
- $fields = $branch->getRawFields();
- $closed = idx($fields, 'closed');
- if ($closed) {
- $status = pht('Closed');
- } else {
- $status = pht('Open');
- }
-
$browse_href = $drequest->generateURI(
array(
'action' => 'browse',
@@ -129,6 +121,18 @@
}
$item->addAttribute(array($datetime));
+ if ($can_close_branches) {
+ $fields = $branch->getRawFields();
+ $closed = idx($fields, 'closed');
+ if ($closed) {
+ $status = pht('Branch Closed');
+ $item->setDisabled(true);
+ } else {
+ $status = pht('Branch Open');
+ }
+ $item->addAttribute($status);
+ }
+
$list->addItem($item);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 26, 4:07 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720722
Default Alt Text
D18447.id44321.diff (1 KB)
Attached To
Mode
D18447: Add indication of hg branch open/closed in branch list
Attached
Detach File
Event Timeline
Log In to Comment