Fix for Size field.
This commit is contained in:
parent
aa387e2021
commit
6669337d3a
@ -74,7 +74,11 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
|
|||||||
<tr tabindex={ strconv.FormatInt(int64(i)+1, 10) }>
|
<tr tabindex={ strconv.FormatInt(int64(i)+1, 10) }>
|
||||||
<td><a href={ templ.SafeURL(entry.Link) }>{ entry.Name }</a></td>
|
<td><a href={ templ.SafeURL(entry.Link) }>{ entry.Name }</a></td>
|
||||||
<td>{ utils.ToClientTimezone(entry.Datetime, r).Format(files.FileDateFormat) }</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>
|
</tr>
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user