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