1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Show file cacheability in Files application

Summary: Ref T5685. We've added a new `canCDN` flag to control whether or not files can be cached and delivered over a CDN. Show this flag in the UI.

Test Plan: Viewed several files, saw correct/expected UI values.

Reviewers: btrahan, 20after4

Reviewed By: 20after4

Subscribers: epriestley

Maniphest Tasks: T5685

Differential Revision: https://secure.phabricator.com/D10213
This commit is contained in:
epriestley 2014-08-11 09:39:06 -07:00
parent b97ccd88ec
commit 5a630f84de

View file

@ -213,6 +213,9 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
pht('%s px', new PhutilNumber($height)));
}
$finfo->addProperty(
pht('Cacheable'),
$file->getCanCDN() ? pht('Yes') : pht('No'));
$storage_properties = new PHUIPropertyListView();
$box->addPropertyList($storage_properties, pht('Storage'));