|
{{ .name }}
|
{{/* Tier Column */}}
{{ partial "tier.html" (dict "name" .backend "align" false) }}
|
{{/* Hash Column */}}
{{ $local := in .features "IsLocal" }}
{{ if $local }}
ALL
{{ else }}
{{ with .hashes }}
{{ delimit . ", " }}
{{ else }}
-
{{ end }}
{{ end }}
|
{{/* ModTime */}}
{{ $d := or (in .features "MkdirMetadata") (in .features "DirSetModTime") }}
{{ $r := true }} {{/* FIXME don't have a way of reading this from the features */}}
{{ $w := and (isset . "precision") (le .precision 1000000000) }}
{{- if $d -}}
D
{{- end -}}
{{ if and $r $w -}}
R/W
{{- else if $r -}}
R
{{- else if $w -}}
W
{{- else -}}
-
{{- end -}}
|
{{/* Case Insensitive */}}
{{ partial "bool.html" (in .features "CaseInsensitive") }}
|
{{/* Duplicate Files */}}
{{ partial "bool.html" (in .features "DuplicateFiles") }}
|
{{/* MIME Type Synthesis */}}
{{ $r := in .features "ReadMimeType" }}
{{ $w := in .features "WriteMimeType" }}
{{ if and $r $w }}
R/W
{{ else if $r }}
R
{{ else if $w }}
W
{{ else }}
-
{{ end }}
|
{{/* Metadata Synthesis */}}
{{ $meta := "" }}
{{/* Check Directory Metadata Support */}}
{{ if or (in .features "ReadDirMetadata") (in .features "WriteDirMetadata") }}
{{ $meta = "D" }}
{{ end }}
{{/* Check System Metadata Read */}}
{{ if in .features "ReadMetadata" }}
{{ $meta = print $meta "R" }}
{{ end }}
{{/* Check System Metadata Write */}}
{{ if in .features "WriteMetadata" }}
{{ $meta = print $meta "W" }}
{{ end }}
{{/* Check User Metadata Support */}}
{{ if in .features "UserMetadata" }}
{{ $meta = print $meta "U" }}
{{ end }}
{{/* Output result or hyphen if empty */}}
{{ if eq $meta "" }}
-
{{ else }}
{{ $meta }}
{{ end }}
|
{{ end }}