Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15418181
D7737.id17483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7737.id17483.diff
View Options
Index: src/applications/phragment/controller/PhragmentBrowseController.php
===================================================================
--- src/applications/phragment/controller/PhragmentBrowseController.php
+++ src/applications/phragment/controller/PhragmentBrowseController.php
@@ -66,6 +66,10 @@
$item->addAttribute(pht(
'Latest Version %s',
$fragment->getLatestVersion()->getSequence()));
+ if ($fragment->getLatestVersion()->getFilePHID() === null) {
+ $item->setDisabled(true);
+ $item->addAttribute(pht('Deleted'));
+ }
} else {
$item->addAttribute('Directory');
}
Index: src/applications/phragment/controller/PhragmentController.php
===================================================================
--- src/applications/phragment/controller/PhragmentController.php
+++ src/applications/phragment/controller/PhragmentController.php
@@ -134,9 +134,15 @@
->setActionList($actions);
if (!$fragment->isDirectory()) {
- $properties->addProperty(
- pht('Type'),
- pht('File'));
+ if ($fragment->getLatestVersion()->getFilePHID() === null) {
+ $properties->addProperty(
+ pht('Type'),
+ pht('File (Deleted)'));
+ } else {
+ $properties->addProperty(
+ pht('Type'),
+ pht('File'));
+ }
$properties->addProperty(
pht('Latest Version'),
$this->renderHandlesForPHIDs(array($fragment->getLatestVersionPHID())));
Index: src/applications/phragment/controller/PhragmentHistoryController.php
===================================================================
--- src/applications/phragment/controller/PhragmentHistoryController.php
+++ src/applications/phragment/controller/PhragmentHistoryController.php
@@ -51,6 +51,11 @@
$version->getDateCreated(),
$viewer));
+ if ($version->getFilePHID() === null) {
+ $item->setDisabled(true);
+ $item->addAttribute('Deletion');
+ }
+
$disabled = !isset($files[$version->getFilePHID()]);
$action = id(new PHUIListItemView())
->setIcon('download')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 9:21 PM (1 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7697565
Default Alt Text
D7737.id17483.diff (2 KB)
Attached To
Mode
D7737: Render deleted files in Phragment as disabled
Attached
Detach File
Event Timeline
Log In to Comment