From 6669337d3a105474187c829f7b367b48b08001e8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 30 Dec 2024 16:50:14 +0400 Subject: [PATCH] Fix for Size field. --- web/index.templ | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/index.templ b/web/index.templ index 65a0e34..9fb1861 100644 --- a/web/index.templ +++ b/web/index.templ @@ -74,7 +74,11 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D { entry.Name } { utils.ToClientTimezone(entry.Datetime, r).Format(files.FileDateFormat) } - { entry.Size + " " + i18n.T(ctx, "size-unit."+entry.SizeUnit) } + if entry.Size == "DIR" { + DIR + } else { + { entry.Size + " " + i18n.T(ctx, "size-unit."+entry.SizeUnit) } + } }