fix filer UI

This commit is contained in:
Chris Lu 2018-05-05 14:10:50 -07:00
parent fffb14bc87
commit 7f49514f6f

View file

@ -28,15 +28,17 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
{{$path := .Path }}
{{ range $dirs_index, $dir := .Directories }}
<li>
<a href= {{ print $path $dir.Name "/"}} >
{{ $dir.Name }}
<a href={{ print $path $dir "/"}} >
{{ $dir }}
</a>
</li>
{{ end }}
{{ range $file_index, $file := .Files }}
<li>
<a href={{ print $path $file.Name}} >
{{ $file.Name }}
</a>
</li>
{{ end }}
</ul>