diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-06-12 17:07:05 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-06-12 17:07:05 +0200 |
commit | e1f9d4ea365b73a8b1607d5bf4ce9ca131f066a3 (patch) | |
tree | 294d72b71e65f8c321f953095515b974a2c71856 /src/jwebmail/templates | |
parent | 3a69fc47718d6c366b1ba1e797eb6c0d7036c129 (diff) |
use jinja file size formatting and remove view.py
Diffstat (limited to 'src/jwebmail/templates')
-rw-r--r-- | src/jwebmail/templates/_folders.html | 2 | ||||
-rw-r--r-- | src/jwebmail/templates/_main_table.html | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ <span class="column has-text-centered"> {% if total_size %} {% trans %}mailbox size: {% endtrans %} - {{ total_size|byte_size10 }} + {{ total_size|filesizeformat }} {% endif %} </span> </div> 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 @@ </div> <div class="column is-2"> - {{ msg.byte_size|byte_size10 }} + {{ msg.byte_size|filesizeformat }} </div> </div> </div> |