{{Extend "layout"}} {{Block "title"}}{{Stored.data.Host}} - {{"文件管理"|T}}{{/Block}} {{Block "breadcrumb"}} {{Super}}
  • {{"SSH"|T}}
  • {{Stored.data.Name}} ({{Stored.data.Username}}@{{Stored.data.Host}})
  • sftp: {{/* 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" -}}
    {{- range $k,$v := Stored.dirs -}} {{- $mode := $v.Mode.String -}} {{- end -}}
    {{"名称"|T}} {{"修改日期"|T}} {{"类型"|T}} {{"大小"|T}} {{"权限"|T}} {{"操作"|T}}
    ..
    {{- if $v.IsDir -}} {{- else if HasPrefix $mode "L" -}} {{- else -}} {{- $fileType := FileTypeByName $v.Name -}} {{if eq $fileType `image`}} {{end}} {{end}} {{$v.Name}}   {{$v.ModTime.Format "2006-01-02 15:04:05"}} {{- 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 -}}
    {{/Block}} {{Block "footer"}} {{$id := Form "id"}} {{Include "caddy/file.script"}} {{/Block}}