diff --git a/caddyhttp/browse/setup.go b/caddyhttp/browse/setup.go index 2eda3f2a..196881a1 100644 --- a/caddyhttp/browse/setup.go +++ b/caddyhttp/browse/setup.go @@ -240,6 +240,30 @@ td .goup { white-space: pre-wrap; } +.icon { + margin-right: 5px; +} + +.icon.sort { + display: inline-block; + width: 1em; + height: 1em; + position: relative; + top: .2em; +} + +.icon.sort .top { + position: absolute; + left: 0; + top: -1px; +} + +.icon.sort .bottom { + position: absolute; + bottom: -1px; + left: 0; +} + footer { padding: 40px 20px; font-size: 12px; @@ -343,35 +367,35 @@ footer { {{- if and (eq .Sort "namedirfirst") (ne .Order "desc")}} - Name + {{- else if and (eq .Sort "namedirfirst") (ne .Order "asc")}} - Name + {{- else}} - Name + {{- end}} - | + {{- if and (eq .Sort "name") (ne .Order "desc")}} - (a-z) + Name {{- else if and (eq .Sort "name") (ne .Order "asc")}} - (a-z) + Name {{- else}} - (a-z) + 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 {{- end}} {{- if and (eq .Sort "time") (ne .Order "desc")}} - Modified + Modified {{- else if and (eq .Sort "time") (ne .Order "asc")}} - Modified + Modified {{- else}} Modified {{- end}}