1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15689] Handle storage stats outside template

PHPBB3-15689
This commit is contained in:
Rubén Calvo
2018-07-09 15:51:52 +02:00
parent 50af5409a6
commit f8423600b1
2 changed files with 26 additions and 10 deletions

View File

@@ -16,22 +16,17 @@
</tr>
</thead>
<tbody>
{% for storage in STORAGES %}
{% for storage in STORAGE_STATS %}
<tr>
<td>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</td>
<td>{{ storage.get_num_files }}</td>
<td>{{ storage.get_size | format_bytes }}</td>
{% if storage.free_space !== false %}
<td>{{ storage.free_space | format_bytes }}</td>
{% else %}
<td>{L_STORAGE_UNKNOWN}</td>
{% endif %}
<td>{{ storage.name }}</td>
<td>{{ storage.files }}</td>
<td>{{ storage.size }}</td>
<td>{{ storage.free_space }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<form id="acp_storage" method="post" action="{{ U_ACTION }}">
{% for storage in STORAGES %}