package master_ui import ( "github.com/dustin/go-humanize" "html/template" ) var funcMap = template.FuncMap{ "humanizeBytes": humanize.Bytes, } var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(` SeaweedFS Filer
{{ range $entry := .Breadcrumbs }} {{ $entry.Name }} {{ end }}
{{$path := .Path }} {{ range $entry_index, $entry := .Entries }} {{ end }}
{{if $entry.IsDirectory}} {{ $entry.Name }} {{else}} {{ $entry.Name }} {{end}} {{if $entry.IsDirectory}} {{else}} {{ $entry.Mime }} {{end}} {{if $entry.IsDirectory}} {{else}} {{ $entry.Size | humanizeBytes }}     {{end}} {{ $entry.Timestamp.Format "2006-01-02 15:04" }}
{{if .ShouldDisplayLoadMore}}