aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_ui
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-24 23:21:12 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-24 23:21:12 -0700
commita01557f4cb98235bbd8d0258ae6f9fcda40f4f9f (patch)
treed26297f7aeb9ee9bc975f6b4e4a9a3704c034d56 /weed/server/filer_ui
parentc11d84f31414997ac43c3c1e638fe762318110d8 (diff)
downloadseaweedfs-a01557f4cb98235bbd8d0258ae6f9fcda40f4f9f.tar.xz
seaweedfs-a01557f4cb98235bbd8d0258ae6f9fcda40f4f9f.zip
adjust filer web page
Diffstat (limited to 'weed/server/filer_ui')
-rw-r--r--weed/server/filer_ui/templates.go20
1 files changed, 16 insertions, 4 deletions
diff --git a/weed/server/filer_ui/templates.go b/weed/server/filer_ui/templates.go
index bba60ff1a..5e901cd68 100644
--- a/weed/server/filer_ui/templates.go
+++ b/weed/server/filer_ui/templates.go
@@ -24,10 +24,11 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
</div>
<div class="row">
- <ul>
+ <table width="90%">
{{$path := .Path }}
{{ range $entry_index, $entry := .Entries }}
- <li>
+ <tr>
+ <td>
{{if $entry.IsDirectory}}
<img src="https://www.w3.org/TR/WWWicn/folder.gif" width="20" height="23">
<a href={{ print $path "/" $entry.Name "/"}} >
@@ -38,10 +39,21 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
{{ $entry.Name }}
</a>
{{end}}
- </li>
+ </td>
+ <td align="right">
+ {{if $entry.IsDirectory}}
+ {{else}}
+ {{ $entry.Size }} bytes
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ {{end}}
+ </td>
+ <td>
+ {{ $entry.Timestamp.Format "2006-01-02 15:04" }}
+ </td>
+ </tr>
{{ end }}
- </ul>
+ </table>
</div>
{{if .ShouldDisplayLoadMore}}