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 {
@Icon("check-circle", "h-7 w-7")

No Conflicts

Your devices are in sync! No conflicts to resolve.

} for _, conflict := range conflicts {

{ conflict.MediaItemTitle }

Type: { conflict.ConflictType }

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