{{ template "base" . }} {{ define "title" }}Activity{{ end }} {{ define "header" }}Activity{{ end }} {{ define "content" }}
{{ template "component/table" (dict "Columns" (slice "Document" "Time" "Duration" "Percent") "Keys" (slice "Document" "StartTime" "Duration" "EndPercentage") "Rows" .Data )}}
{{ end }} {{ define "table-cell" }} {{ if eq .Name "Document" }} {{ .Data.Author }} - {{ .Data.Title }} {{ else if eq .Name "EndPercentage" }} {{ index (fields .Data) .Name }}% {{ else }} {{ index (fields .Data) .Name }} {{ end }} {{ end }}