package templates import ( "bookhoard/internal/handlers" "fmt" "github.com/microcosm-cc/bluemonday" ) templ BookDetail(user User, book handlers.MediaDetail, errorMessage string) {
⚠️ Progress conflict detected - Click "Sync Progress" to review and resolve
Progress
{ fmt.Sprintf("%.1f", book.ReadingProgress.Percentage.Float64) }%
Page
{ book.ReadingProgress.CurrentPage.Int32 } / { book.ReadingProgress.TotalPages.Int32 }
Last Read
{ book.ReadingProgress.LastReadAt.Time.Format("2006-01-02 15:04") }
Source
{ book.ReadingProgress.LastSyncSource.String }
Publisher
{ book.Publisher.String }
Published
{ book.DatePublished.Time.Format("2006-01-02") }
Isbn
{ book.Isbn.String }
Language
{ book.Language.String }
Edition
{ book.Edition.String }
Pages
{ book.PageCount.Int32 }
Genre
{ book.Genre.String }
Copyright Year
{ book.CopyrightYear.Int32 }
Format
{ book.MimeType.String }
File Size
{ formatFileSize(book.FileSize.Int64) }