package templates import ( "bookhoard/internal/handlers" "fmt" ) templ ProgressSyncModal(user User, book handlers.MediaDetail) {
{ book.Title }
⚠️ Conflict Detected
Progress differs between devices. Review the options below and manually resolve via the Conflicts page.
Go to Conflicts Page →{ FormatInTimezone(data.Timestamp, user.Timezone) }
No conflicts detected. Current progress from { book.ReadingProgress.LastSyncSource.String }:
{ book.ReadingProgress.LastSyncSource.String }
if book.ReadingProgress.CurrentPage.Valid && book.ReadingProgress.TotalPages.Valid {Page { book.ReadingProgress.CurrentPage.Int32 } of { book.ReadingProgress.TotalPages.Int32 }
} if book.ReadingProgress.LastReadAt.Valid {Last read: { FormatTimestamptzInTimezone(book.ReadingProgress.LastReadAt, user.Timezone) }
}This book has { book.NotesCount } notes and { book.HighlightsCount } highlights.
Feature coming soon!