From e1f9d4ea365b73a8b1607d5bf4ce9ca131f066a3 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Wed, 12 Jun 2024 17:07:05 +0200 Subject: use jinja file size formatting and remove view.py --- src/jwebmail/templates/_folders.html | 2 +- src/jwebmail/templates/_main_table.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jwebmail/templates') diff --git a/src/jwebmail/templates/_folders.html b/src/jwebmail/templates/_folders.html index e9509e7..7b8f85d 100644 --- a/src/jwebmail/templates/_folders.html +++ b/src/jwebmail/templates/_folders.html @@ -44,7 +44,7 @@ {% if total_size %} {% trans %}mailbox size: {% endtrans %} - {{ total_size|byte_size10 }} + {{ total_size|filesizeformat }} {% endif %} diff --git a/src/jwebmail/templates/_main_table.html b/src/jwebmail/templates/_main_table.html index 700d77c..b6493fb 100644 --- a/src/jwebmail/templates/_main_table.html +++ b/src/jwebmail/templates/_main_table.html @@ -33,7 +33,7 @@
- {{ msg.byte_size|byte_size10 }} + {{ msg.byte_size|filesizeformat }}
-- cgit v1.2.3