{{ range sort site.Data.backends "name" "asc" }} {{ if .virtual }}{{ continue }} {{ end }} {{/* Tier Column */}} {{/* Hash Column */}} {{/* ModTime */}} {{/* Case Insensitive */}} {{/* Duplicate Files */}} {{/* MIME Type Synthesis */}} {{/* Metadata Synthesis */}} {{ end }}
Name Tier Hash ModTime Case Insensitive Duplicate Files MIME Type Metadata
{{ .name }} {{ partial "tier.html" (dict "name" .backend "align" false) }} {{ $local := in .features "IsLocal" }} {{ if $local }} ALL {{ else }} {{ with .hashes }} {{ delimit . ", " }} {{ else }} - {{ end }} {{ end }} {{ $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 -}} {{ partial "bool.html" (in .features "CaseInsensitive") }} {{ partial "bool.html" (in .features "DuplicateFiles") }} {{ $r := in .features "ReadMimeType" }} {{ $w := in .features "WriteMimeType" }} {{ if and $r $w }} R/W {{ else if $r }} R {{ else if $w }} W {{ else }} - {{ end }} {{ $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 }}