{{template "base" .}} {{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 }}

WPM Leaderboard

{{ $length := len .Data.WPMLeaderboard }} {{ if eq $length 0 }}

N/A

{{ else }}

{{ (index .Data.WPMLeaderboard 0).UserID }}

{{ end }}
{{ range $index, $item := .Data.WPMLeaderboard }} {{ if lt $index 3 }} {{ if eq $index 0 }}
{{ else }}
{{ end }}

{{ $item.UserID }}

{{ $item.Wpm }} WPM
{{ end }} {{ end }}
{{end}}