{{ template "base" . }} {{ define "title" }}Progress{{ end }} {{ define "header" }}Progress{{ end }} {{ define "content" }}
{{ template "component/table" (dict "Columns" (slice "Document" "Device Name" "Percentage" "Created At") "Keys" (slice "Document" "DeviceName" "Percentage" "CreatedAt") "Rows" .Data )}}
{{ end }} {{ define "table-cell" }} {{ if eq .Name "Document" }} {{ .Data.Author }} - {{ .Data.Title }} {{ else if eq .Name "Percentage" }} {{ index (fields .Data) .Name }}% {{ else }} {{ index (fields .Data) .Name }} {{ end }} {{ end }}