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")
@Icon("alert", "h-5 w-5")

Sync Conflicts

Resolve conflicts when reading progress differs across devices

{ total }
Total
{ unresolved }
Unresolved
{ total - unresolved }
Resolved
if len(conflicts) == 0 {
@Icon("check-circle", "h-7 w-7")

No Conflicts

Your devices are in sync! No conflicts to resolve.

} for _, conflict := range conflicts {
@Icon("alert", "h-5 w-5")

{ conflict.MediaItemTitle }

Type: { conflict.ConflictType }

Created: { FormatInTimezone(conflict.CreatedAt, user.Timezone) } if conflict.ResolvedBy != "" { | Resolved by: { conflict.ResolvedBy } }
}
@ErrorToast(errorMessage) }