package templates import "bookhoard/internal/handlers" templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total int, unresolved int, errorMessage string) { Sync Conflicts - Bookhoard @Header(user, "/conflicts")

Sync Conflicts

Resolve conflicts when reading progress differs across devices

Total: { total } Unresolved: { unresolved } Resolved: { total - unresolved }
if len(conflicts) == 0 {

No Conflicts

Your devices are in sync! No conflicts to resolve.

} for _, conflict := range conflicts {

{ conflict.MediaItemTitle }

Type: { conflict.ConflictType }

Created: { conflict.CreatedAt.Format("2006-01-02 15:04:05") } if conflict.ResolvedBy != "" { | Resolved by: { conflict.ResolvedBy } }
}
@ErrorToast(errorMessage) }