aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-05 14:10:50 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-05 14:10:50 -0700
commit7f49514f6fad19b70d955f8ad94fa7eae4e45edf (patch)
treef6c90bfa2bac3491cc853113e686a9c0da83d773
parentfffb14bc87f930cfdc14ab6fba01218606463f34 (diff)
downloadseaweedfs-7f49514f6fad19b70d955f8ad94fa7eae4e45edf.tar.xz
seaweedfs-7f49514f6fad19b70d955f8ad94fa7eae4e45edf.zip
fix filer UI
-rw-r--r--weed/server/filer_ui/templates.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/weed/server/filer_ui/templates.go b/weed/server/filer_ui/templates.go
index 6f4f7ce86..b6a8a1878 100644
--- a/weed/server/filer_ui/templates.go
+++ b/weed/server/filer_ui/templates.go
@@ -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>