From d4f249741efa0fe300a197e27370a28d8748628f Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Tue, 8 Sep 2020 19:45:48 +0300 Subject: browse: align template to struct field renames from 4940325 (#3706) --- modules/caddyhttp/fileserver/browsetpl.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'modules') diff --git a/modules/caddyhttp/fileserver/browsetpl.go b/modules/caddyhttp/fileserver/browsetpl.go index 6415d59..f3fe36f 100644 --- a/modules/caddyhttp/fileserver/browsetpl.go +++ b/modules/caddyhttp/fileserver/browsetpl.go @@ -283,8 +283,8 @@ footer {
{{.NumDirs}} director{{if eq 1 .NumDirs}}y{{else}}ies{{end}} {{.NumFiles}} file{{if ne 1 .NumFiles}}s{{end}} - {{- if ne 0 .ItemsLimitedTo}} - (of which only {{.ItemsLimitedTo}} are displayed) + {{- if ne 0 .Limit}} + (of which only {{.Limit}} are displayed) {{- end}}
@@ -296,37 +296,37 @@ footer { {{- if and (eq .Sort "namedirfirst") (ne .Order "desc")}} - + {{- else if and (eq .Sort "namedirfirst") (ne .Order "asc")}} - + {{- else}} - + {{- end}} {{- if and (eq .Sort "name") (ne .Order "desc")}} - Name + Name {{- else if and (eq .Sort "name") (ne .Order "asc")}} - Name + Name {{- else}} - Name + Name {{- end}} {{- if and (eq .Sort "size") (ne .Order "desc")}} - Size + Size {{- else if and (eq .Sort "size") (ne .Order "asc")}} - Size + Size {{- else}} - Size + Size {{- end}} {{- if and (eq .Sort "time") (ne .Order "desc")}} - Modified + Modified {{- else if and (eq .Sort "time") (ne .Order "asc")}} - Modified + Modified {{- else}} - Modified + Modified {{- end}} -- cgit v1.2.3