mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15689] Show statistics of storages on acp_storage
PHPBB3-15689
This commit is contained in:
parent
5087d5d6b6
commit
584d03a9fe
3 changed files with 27 additions and 0 deletions
|
@ -6,6 +6,28 @@
|
||||||
|
|
||||||
<p>{{ lang('STORAGE_TITLE_EXPLAIN') }}</p>
|
<p>{{ lang('STORAGE_TITLE_EXPLAIN') }}</p>
|
||||||
|
|
||||||
|
<table class="table1 zebra-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{L_STORAGE_NAME}</th>
|
||||||
|
<th>{L_STORAGE_NUM_FILES}</th>
|
||||||
|
<th>{L_STORAGE_SIZE}</th>
|
||||||
|
<th>{L_STORAGE_FREE}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for storage in STORAGES %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</td>
|
||||||
|
<td>{{ storage.get_num_files }}</td>
|
||||||
|
<td>{{ storage.get_size | format_bytes }}</td>
|
||||||
|
<td>{{ storage.free_space | format_bytes }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<form id="acp_storage" method="post" action="{{ U_ACTION }}">
|
<form id="acp_storage" method="post" action="{{ U_ACTION }}">
|
||||||
|
|
||||||
{% for storage in STORAGES %}
|
{% for storage in STORAGES %}
|
||||||
|
|
|
@ -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_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' => 'Select storage',
|
||||||
'STORAGE_SELECT_DESC' => 'Select a storage from the list.',
|
'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 names
|
||||||
'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage',
|
'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage',
|
||||||
|
|
|
@ -73,6 +73,7 @@ class extension extends \Twig_Extension
|
||||||
new \Twig_SimpleFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)),
|
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
|
// @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes
|
||||||
new \Twig_SimpleFilter('addslashes', 'addslashes'),
|
new \Twig_SimpleFilter('addslashes', 'addslashes'),
|
||||||
|
new \Twig_SimpleFilter('format_bytes', 'get_formatted_filesize'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue