1
0

Fix for Size field.

This commit is contained in:
Alexander Andreev 2024-12-30 16:50:14 +04:00
parent aa387e2021
commit 6669337d3a
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -74,7 +74,11 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<tr tabindex={ strconv.FormatInt(int64(i)+1, 10) }>
<td><a href={ templ.SafeURL(entry.Link) }>{ entry.Name }</a></td>
<td>{ utils.ToClientTimezone(entry.Datetime, r).Format(files.FileDateFormat) }</td>
<td>{ entry.Size + " " + i18n.T(ctx, "size-unit."+entry.SizeUnit) }</td>
if entry.Size == "DIR" {
<td>DIR</td>
} else {
<td>{ entry.Size + " " + i18n.T(ctx, "size-unit."+entry.SizeUnit) }</td>
}
</tr>
}
</tbody>