package templates import ( "bookhoard/internal/handlers" "fmt" ) templ ProgressSyncModal(user User, book handlers.MediaDetail) {
{ book.Title }
Conflict Detected
Progress differs between devices. Choose which version to keep.
{ 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) }
}{ book.Title }
No deleted annotations. Highlights, notes, and bookmarks removed on the web or on a synced device appear here for recovery.
Deleted entries are kept for the sync retention window before being removed automatically. Restore returns them to every synced device; Delete permanently removes them immediately.
{ ann.DisplayText }
} else {(no text)
} if ann.SecondaryText != "" {{ ann.SecondaryText }
}