{{Extend "layout"}} {{Block "title"}}{{Stored.data.Type}} - {{"云存储文件管理"|T}}{{/Block}} {{Block "breadcrumb"}} {{Super}}
  • {{"云存储账号"|T}}
  • {{Stored.data.Name}} ({{Stored.data.Bucket}}.{{Stored.data.Endpoint}})
  • {{Stored.data.Type}}: {{/* Stored.Get "path" */}} {{- range $k,$v := Stored.pathLinks -}} /{{$v.K}} {{- end -}}
  • {{/Block}} {{Block "head"}} {{Include "caddy/file.head"}} {{/Block}} {{Block "main"}} {{- $id := Form "id" -}} {{- $path := Stored.Get "path" -}} {{- $parentPath := Stored.Get "parentPath" -}} {{- $pathPrefix := Stored.Get "pathPrefix" -}} {{- $engine := Form "engine" "" -}}
    {{range $k,$v := Stored.dirs}} {{$mode := $v.Mode.String}} {{end}}
    {{"名称"|T}} {{"修改日期"|T}} {{"类型"|T}} {{"大小"|T}} {{"权限"|T}} {{"操作"|T}}
    ..
    {{if $v.IsDir}} {{$v.Name}} {{else}} {{$fileType := FileTypeByName $v.Name}} {{if eq $fileType `image`}} {{end}} {{$v.Name}} {{end}}   {{if $v.ModTime.IsZero}}—{{else}}{{$v.ModTime.Format "2006-01-02 15:04:05"}}{{end}} {{if $v.IsDir}} {{"文件夹"|T}} {{else if HasPrefix $mode "L"}} {{"链接"|T}} {{else}} {{"文件"|T}} {{end}} {{if $v.IsDir}}—{{else}}{{$v.Size|FormatByte}}{{end}} {{$mode}} {{if not $v.IsDir}}   {{end}} {{if not $v.IsDir}} {{if Editable $v.Name}}   {{end}} {{$mediaMime:=Playable $v.Name}} {{if $mediaMime}}   {{end}} {{end}}
    {{if Stored.pagination}}{{Stored.pagination.Render `pagination_cursor`}}{{end}}
    {{/Block}} {{Block "footer"}} {{$id := Form "id"}} {{Include "caddy/file.script"}} {{/Block}}