Page MenuHomePhabricator

D18447.id44321.diff
No OneTemporary

D18447.id44321.diff

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

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)

Event Timeline