package templates import ( "bookhoard/internal/handlers" "fmt" ) templ Dashboard(user User, sections []handlers.SectionData, allSections []handlers.SectionData, libData []LibraryData, currentLibraryID string, hiddenCollections []string, itemsPerSection int, week *WeekStatsData, activeLibType string, errorMessage string, unlinkedCount int) {
{ section.Description }
}No items in this collection
Drag to reorder, toggle to show or hide.
Listening Time
{ fmtReadingMinutes(week.WeekMinutes) }
{ weekVsPrevLabel(week.WeekMinutes, week.PrevMinutes) }
Sessions
{ fmt.Sprintf("%d", week.WeekSessions) }
Books Touched
{ fmt.Sprintf("%d", week.WeekBooks) }
Reading Time
{ fmtReadingMinutes(week.WeekMinutes) }
{ weekVsPrevLabel(week.WeekMinutes, week.PrevMinutes) }
Pages
{ fmt.Sprintf("%d", week.WeekPages) }
Sessions
{ fmt.Sprintf("%d", week.WeekSessions) }
Books Touched
{ fmt.Sprintf("%d", week.WeekBooks) }
Synced from your reading devices if week.CurrentStreak > 0 { if week.ActiveToday { { fmt.Sprintf(" ยท ๐ฅ %d-day streak โ keep it going today", week.CurrentStreak) } } else { { fmt.Sprintf(" ยท ๐ฅ %d-day streak โ read today to keep it", week.CurrentStreak) } } }