reworked dashboard

This commit is contained in:
2025-05-25 12:07:42 +02:00
parent 6c37cb4ddd
commit f33b400df2
13 changed files with 523 additions and 310 deletions

11
templates/macros.html Normal file
View File

@@ -0,0 +1,11 @@
{% macro format_size(size) %}
{% if size < 1024 %}
{{ size }} B
{% elif size < 1024 * 1024 %}
{{ (size / 1024)|round(1) }} KB
{% elif size < 1024 * 1024 * 1024 %}
{{ (size / (1024 * 1024))|round(1) }} MB
{% else %}
{{ (size / (1024 * 1024 * 1024))|round(1) }} GB
{% endif %}
{% endmacro %}