package templates templ UnlinkedBooks(user User, unlinkedBooks []UnlinkedBookData) { Unlinked Books - Bookhoard @Header(user, "/unlinked")

Unlinked Books

Resolve books that couldn't be automatically matched between devices

if len(unlinkedBooks) > 0 {
0 selected
}
if len(unlinkedBooks) == 0 {
@Icon("check-circle", "h-12 w-12 text-success")

All Books Linked!

There are no unlinked books that need manual resolution.

} for _, book := range unlinkedBooks {
if book.DeviceType == "koreader" { @Icon("book-open", "h-8 w-8") } else if book.DeviceType == "kobo" { @Icon("book", "h-8 w-8") } else { @Icon("device", "h-8 w-8") }

{ book.TitleFromDevice }

Device: { book.DeviceName } ({ book.DeviceType })

File Path: { book.FilePath }
if book.SHA256 != "" {
SHA-256: { book.SHA256 }
}
Last Synced: { book.LastSyncTime }
if book.ConfidenceScore > 0 {
Auto-Link Confidence: { book.ConfidenceScore }% confidence
}
}
}