Your Library
Pick up where you left off, or explore something new.
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, errorMessage string) {
Pick up where you left off, or explore something new.
{ section.Description }
}No items in this collection
Drag to reorder, toggle to show or hide.
Synced from your reading devices
{ fmt.Sprintf("%d min", week.WeekMinutes) }
{ readingTimeSuffix(week.WeekMinutes, week.PrevMinutes) }
{ fmt.Sprintf("%d", week.WeekPages) }
pages read
{ fmt.Sprintf("%d", week.WeekSessions) }
reading sessions
{ fmt.Sprintf("%d", week.WeekBooks) }
books touched
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) } } } else { { "A reading day today starts your streak." } }