{{template "base.html" .}} {{define "title"}}Home{{end}} {{define "header"}} Home {{end}} {{define "content"}}

Daily Read Totals

{{ $data := (GetSVGGraphData .Data.GraphData 800 70 )}} {{ range $index, $item := $data.LinePoints }} {{ (index $.Data.GraphData $index).Date }} {{ (index $.Data.GraphData $index).MinutesRead }} minutes {{ end }}

{{ .Data.DatabaseInfo.DocumentsSize }}

Documents

{{ .Data.DatabaseInfo.ActivitySize }}

Activity Records

{{ .Data.DatabaseInfo.ProgressSize }}

Progress Records

{{ .Data.DatabaseInfo.DevicesSize }}

Devices

{{ range $item := .Data.Streaks }}

{{ if eq $item.Window "WEEK" }} Weekly Read Streak {{ else }} Daily Read Streak {{ end }}

{{ $item.CurrentStreak }}

{{ if eq $item.Window "WEEK" }} Current Weekly Streak {{ else }} Current Daily Streak {{ end }}

{{ $item.CurrentStreakStartDate }} ➞ {{ $item.CurrentStreakEndDate }}
{{ $item.CurrentStreak }}

{{ if eq $item.Window "WEEK" }} Best Weekly Streak {{ else }} Best Daily Streak {{ end }}

{{ $item.MaxStreakStartDate }} ➞ {{ $item.MaxStreakEndDate }}
{{ $item.MaxStreak }}
{{ end }}
{{end}}