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) } + } }