{{- $dialog := Stored.dialog -}} {{- $multiple := Stored.multiple -}}
{{- if or (not $dialog) $multiple -}}
|
{{- if not $dialog -}}
ID | {{- end -}}{{"图片"|T}} | {{"原始名称"|T}} | {{- if not $dialog -}}{{"保存位置"|T}} | {{"文件类型"|T}} | {{"大小"|T}} | {{"尺寸"|T}} | {{- end -}}{{"时间"|T}} | {{- if not $dialog -}}{{"操作"|T}} | {{- end -}}
---|---|---|---|---|---|---|---|---|---|
{{- if not $dialog -}}
|
{{- if not $dialog -}}
{{$v.Id}} | {{- end -}}
{{- if eq $v.Type `image` -}}
![]() ![]() |
{{$v.Name}}
{{if gt $v.UsedTimes 0}}{{T `使用%d次` $v.UsedTimes}}{{else}}{{`未使用`|T}}{{end}}
{{- if $dialog}}
{{FormatBytes $v.Size 2 true}}
{{if gt $v.Width 0}}{{$v.Width}}×{{$v.Height}}{{end}}
{{- end -}}
|
{{- if not $dialog -}}
{{$v.SavePath}} | {{$v.Type}} | {{FormatBytes $v.Size 2 true}} | {{if gt $v.Width 0}}{{$v.Width}}×{{$v.Height}}{{else}}-{{end}} | {{- end -}}{{(Date $v.Created).Format "2006-01-02 15:04:05"}} | {{- if not $dialog -}}{{- end -}} |