mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
fileserver: Add total file size to directory listing (#6003)
* browse: Add total file size to directory listing * Apply suggestion to remove "in " Co-authored-by: Matt Holt <mholt@users.noreply.github.com> --------- Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
parent
f976c84d9e
commit
8f9ffc587e
2 changed files with 17 additions and 0 deletions
|
|
@ -790,6 +790,9 @@ footer {
|
|||
<span class="meta-item">
|
||||
<b>{{.NumFiles}}</b> file{{if ne 1 .NumFiles}}s{{end}}
|
||||
</span>
|
||||
<span class="meta-item">
|
||||
<b>{{.HumanTotalFileSize}}</b> total
|
||||
</span>
|
||||
{{- if ne 0 .Limit}}
|
||||
<span class="meta-item">
|
||||
(of which only <b>{{.Limit}}</b> are displayed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue