Add user auth, personal cabinet, admin panel and first admin bootstrap
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{% macro format_size(bytes) %}
|
||||
{% set size = bytes|float %}
|
||||
{% if size < 1024 %}
|
||||
{{ size|int }} Б
|
||||
{% elif size < 1048576 %}
|
||||
{{ "%.1f"|format(size / 1024) }} КБ
|
||||
{% elif size < 1073741824 %}
|
||||
{{ "%.1f"|format(size / 1048576) }} МБ
|
||||
{% else %}
|
||||
{{ "%.1f"|format(size / 1073741824) }} ГБ
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user