package templates import ( "fmt" "mal/internal/database" "mal/internal/shared/ui" ) templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentStatus string, sortBy string, sortOrder string) { @Layout("mal - watchlist", true) {
@ui.SortFilter(ui.SortFilterOptions{Sort: sortBy, Order: sortOrder, View: layout, Status: currentStatus}) if len(entries) == 0 { @ui.EmptyState("Nothing here yet") { if currentStatus == "all" { Your watchlist is empty. Search for anime to get started. } else if currentStatus == "continuing" { No airing anime with watching or plan to watch status. } else { No anime in this category. } } } else { if layout == "grid" {| Title | ||
|---|---|---|
|
|
{ entry.DisplayTitle() } |