From 0512ff6e64d6e5f0867168a23d92c47c622a2f36 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Fri, 16 Feb 2024 07:26:31 -0500 Subject: [PATCH] Format sizes in the web view in "1.23 MiB" style --- CHANGELOG.md | 1 + Cargo.lock | 16 +++++++++ Cargo.toml | 1 + src/dav/html.rs | 41 ++++++++++++++++++++++- src/dav/templates/collection.html.tera | 2 +- src/testdata/render-collection/basic.html | 8 ++--- 6 files changed, 63 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac2a8b5..532ba56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ In Development - Add links to version & asset metadata to the web view - Adjust the format of timestamps in the web view: Always use UTC, show the timezone as "Z", prevent line breaking in the middle, wrap in `