Browse Source

fix filer UI

pull/645/head
Chris Lu 7 years ago
parent
commit
7f49514f6f
  1. 6
      weed/server/filer_ui/templates.go

6
weed/server/filer_ui/templates.go

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

Loading…
Cancel
Save