package templates import ( "fmt" db "mal/internal/db" components "mal/web/components" "mal/web/components/watchlist" "mal/web/shared" "mal/web/shared/layout" ) templ Watchlist( entries []db.GetUserWatchListRow, currentStatus string, sortBy string, sortOrder string, ) { @layout.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, 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 {
for _, entry := range entries {
{
{ entry.DisplayTitle() }
@watchlist.Progress(entry)
}
} } }