Hash Conflicts
Books with identical content stored at more than one path
No content duplicates detected.
package templates import "fmt" // HashConflictItemData is one copy in a conflict group. type HashConflictItemData struct { ID string Title string Author string FilePath string FileSize int64 UsageSummary string HasReadingData bool } // HashConflictData is one pending conflict group. type HashConflictData struct { ID string LibraryName string SHA256 string SHAShort string CreatedAt string Items []HashConflictItemData } templ HashConflictCard(conflict HashConflictData) {
Library: { conflict.LibraryName }
ยท
SHA-256: { conflict.SHAShort }
These files are byte-identical. Keep one copy (reading data from the others is merged in), or keep both if the duplicates are intentional.
{ item.Title }
if item.Author != "" {{ item.Author }
}{ item.FilePath }
{ fmt.Sprintf("%.1f MB", float64(item.FileSize)/(1024*1024)) } if item.HasReadingData { { item.UsageSummary } } else { { item.UsageSummary } }
Books with identical content stored at more than one path
No content duplicates detected.