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) {

Watchlist

Track what you're watching with less noise.

Export
All Watching On hold Plan to watch Dropped Completed
@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" {
for _, entry := range entries {
{
{ entry.DisplayTitle() }
@watchlist.Progress(entry)
}
} else { for _, entry := range entries { }
Title
{ { entry.DisplayTitle() } @watchlist.Progress(entry)
} } } }