diff --git a/templates/book_detail.templ b/templates/book_detail.templ index c32af59..27986c0 100644 --- a/templates/book_detail.templ +++ b/templates/book_detail.templ @@ -19,567 +19,403 @@ templ BookDetail(user User, book handlers.MediaDetail, errorMessage string) { -
+ @Header(user, "/media/{ uuidToString(book.ID) }") -- β οΈ Progress conflict detected - Click "Sync Progress" to review and resolve -
+Progress conflict detected β click "Sync Progress" to review and resolve.
Progress
-- { fmt.Sprintf("%.1f", book.ReadingProgress.Percentage.Float64 * 100) }% -
+Progress
+{ fmt.Sprintf("%.1f", book.ReadingProgress.Percentage.Float64*100) }%
Page
-{ book.ReadingProgress.CurrentPage.Int32 } / { book.ReadingProgress.TotalPages.Int32 }
+Page
+{ book.ReadingProgress.CurrentPage.Int32 } / { book.ReadingProgress.TotalPages.Int32 }
Last Read
-{ FormatTimestamptzInTimezone(book.ReadingProgress.LastReadAt, user.Timezone) }
+Last Read
+{ FormatTimestamptzInTimezone(book.ReadingProgress.LastReadAt, user.Timezone) }
Source
-{ book.ReadingProgress.LastSyncSource.String }
+Source
+{ book.ReadingProgress.LastSyncSource.String }
Publisher
-{ book.Publisher.String }
+Publisher
+{ book.Publisher.String }
Published
-{ book.DatePublished.Time.Format("01-02-2006") }
+Published
+{ book.DatePublished.Time.Format("01-02-2006") }
Isbn
-{ book.Isbn.String }
+ISBN
+{ book.Isbn.String }
Language
-{ book.Language.String }
+Language
+{ book.Language.String }
Edition
-{ book.Edition.String }
+Edition
+{ book.Edition.String }
Pages
-{ book.PageCount.Int32 }
+Pages
+{ book.PageCount.Int32 }
Genre
-{ book.Genre.String }
+Genre
+{ book.Genre.String }
Series Count
-{ book.SeriesCount.Int32 } items
+Series Count
+{ book.SeriesCount.Int32 } items
Volume
-Vol. { book.Volume.Int32 }
+Volume
+Vol. { book.Volume.Int32 }
Imprint
-{ book.Imprint.String }
+Imprint
+{ book.Imprint.String }
Copyright Year
-{ book.CopyrightYear.Int32 }
+Copyright
+{ book.CopyrightYear.Int32 }
Manga Type
-{ strings.ReplaceAll(book.MangaType.String, "_", " ") }
+Manga Type
+{ strings.ReplaceAll(book.MangaType.String, "_", " ") }
Scan Info
+Scan Info
{ book.ScanInformation.String }
Alternate Series
-{ string(book.AlternateInfo) }
-Alternate Series
-{ altSeries }
+Alternate Series
+{ altSeries }
Contributors
-{ strings.Join(book.Contributors, ", ") }
+Contributors
+{ strings.Join(book.Contributors, ", ") }
Format
-{ book.MimeType.String }
+Format
+{ book.MimeType.String }
File Size
-{ formatFileSize(book.FileSize.Int64) }
+File Size
+{ formatFileSize(book.FileSize.Int64) }