package templates templ AdminProcessingIssues(user User, libraryID string, issues []ProcessingIssueData, stats IssueStats) { Processing Issues - Bookhoard @Header(user, "/admin/library")
@Icon("alert", "h-5 w-5")

Processing Issues

Items that couldn't be processed in this library

@ProcessingIssuesContent(libraryID, issues, stats)
} // ProcessingIssuesContent is the swappable body of the Processing Issues // page: the severity stat cards (with the Retry-all control on the right // of the errors row) and the issue card list. Rendered by the page and by // the /admin/libraries/:id/issues/content partial the retry queue swaps // in after draining. templ ProcessingIssuesContent(libraryID string, issues []ProcessingIssueData, stats IssueStats) {
if len(issues) > 0 {
if stats.ErrorCount > 0 {
@Icon("x-circle", "h-5 w-5")

Errors

{ stats.ErrorCount }

} if stats.WarningCount > 0 {
@Icon("alert", "h-5 w-5")

Warnings

{ stats.WarningCount }

} if stats.InfoCount > 0 {
@Icon("info", "h-5 w-5")

Info

{ stats.InfoCount }

}
} if len(issues) == 0 {
@Icon("check-circle", "h-6 w-6")

No processing issues found for this library.

} else {
for _, issue := range issues {

{ issue.Title }

{ issue.IssueDescription }

Type: { issue.IssueType }

Format: { issue.FormatGroup }

File: { issue.FilePath }

Library: { issue.LibraryTypeName }

if issue.Severity == "error" { { issue.Severity } } else if issue.Severity == "warning" { { issue.Severity } } else { { issue.Severity } }
if issue.Severity == "warning" || issue.Severity == "info" { }
}
}
}