{{ template "right-side-actions" . }}
{{ with .Data.PreviewItem}}
{{ if eq .Type "image" }}

{{ else if eq .Type "audio" }}
{{ else if eq .Type "video" }}
{{ else if eq .Extension ".pdf" }}
{{ else if eq .Type "blob" }}
Download file_download
{{ else }}
{{ .StringifyContent }}
{{ end }}
{{ end }}
{{ end }}
{{- with .Data -}}
{{ if and (eq .NumDirs 0) (eq .NumFiles 0) }}
It feels lonely here :'(
{{ end }}
{{- if not (eq .NumDirs 0)}}
Folders
{{- range .Items }}
{{- if (.IsDir) }}
{{ template "item" .}}
{{- end }}
{{- end }}
{{- end }}
{{- if not (eq .NumFiles 0)}}
Files
{{- range .Items }}
{{- if (not .IsDir) }}
{{ template "item" .}}
{{- end }}
{{- end }}
{{- end }}
{{- if .IsDir}}
folder
{{- else}}
{{ if eq .Type "image" }}
insert_photo
{{ else if eq .Type "audio" }}
volume_up
{{ else if eq .Type "video" }}
movie
{{ else }}
insert_drive_file
{{ end }}
{{- end}}
{{.Name}}
{{- if .IsDir}}
—
{{- else}}
{{.HumanSize}}
{{- end}}
{{ end }}