package templates import ( "bookhoard/internal/handlers" "fmt" "net/url" "github.com/microcosm-cc/bluemonday" "strings" ) 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 * 100) }%
Page
{ book.ReadingProgress.CurrentPage.Int32 } / { book.ReadingProgress.TotalPages.Int32 }
Last Read
{ FormatTimestamptzInTimezone(book.ReadingProgress.LastReadAt, user.Timezone) }
Source
{ book.ReadingProgress.LastSyncSource.String }
Publisher
{ book.Publisher.String }
Published
{ book.DatePublished.Time.Format("01-02-2006") }
Isbn
{ book.Isbn.String }
Language
{ book.Language.String }
Edition
{ book.Edition.String }
Pages
{ book.PageCount.Int32 }
Genre
{ book.Genre.String }
Series Count
{ book.SeriesCount.Int32 } items
Volume
Vol. { book.Volume.Int32 }
Imprint
{ book.Imprint.String }
Copyright Year
{ book.CopyrightYear.Int32 }
Manga Type
{ strings.ReplaceAll(book.MangaType.String, "_", " ") }
Scan Info
{ book.ScanInformation.String }
Alternate Series
{ string(book.AlternateInfo) }
Alternate Series
{ altSeries }
Contributors
{ strings.Join(book.Contributors, ", ") }
Format
{ book.MimeType.String }
File Size
{ formatFileSize(book.FileSize.Int64) }