diff --git a/phpBB/adm/style/acp_storage.html b/phpBB/adm/style/acp_storage.html index 4689a7546d..2d871a6e44 100644 --- a/phpBB/adm/style/acp_storage.html +++ b/phpBB/adm/style/acp_storage.html @@ -6,6 +6,28 @@

{{ lang('STORAGE_TITLE_EXPLAIN') }}

+ + + + + + + + + + + {% for storage in STORAGES %} + + + + + + + {% endfor %} + +
{L_STORAGE_NAME}{L_STORAGE_NUM_FILES}{L_STORAGE_SIZE}{L_STORAGE_FREE}
{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}{{ storage.get_num_files }}{{ storage.get_size | format_bytes }}{{ storage.free_space | format_bytes }}
+ +
{% for storage in STORAGES %} diff --git a/phpBB/language/en/acp/storage.php b/phpBB/language/en/acp/storage.php index 8d20a24db7..1f43c6963a 100644 --- a/phpBB/language/en/acp/storage.php +++ b/phpBB/language/en/acp/storage.php @@ -43,6 +43,10 @@ $lang = array_merge($lang, array( 'STORAGE_TITLE_EXPLAIN' => 'Change storage providers for the file storage types of phpBB. Choose local or remote providers to store files added to or created by phpBB.', 'STORAGE_SELECT' => 'Select storage', 'STORAGE_SELECT_DESC' => 'Select a storage from the list.', + 'STORAGE_NAME' => 'Storage name', + 'STORAGE_NUM_FILES' => 'Number of files', + 'STORAGE_SIZE' => 'Size', + 'STORAGE_FREE' => 'Available space', // Storage names 'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage', diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php index cc8c2acf04..c42ad34692 100644 --- a/phpBB/phpbb/template/twig/extension.php +++ b/phpBB/phpbb/template/twig/extension.php @@ -73,6 +73,7 @@ class extension extends \Twig_Extension new \Twig_SimpleFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)), // @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes new \Twig_SimpleFilter('addslashes', 'addslashes'), + new \Twig_SimpleFilter('format_bytes', 'get_formatted_filesize'), ); }