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, viewLayout string, currentStatus string, sortBy string, sortOrder string, ) { @layout.Layout("mal - watchlist", true) {
@components.SortFilter(components.SortFilterOptions{ Sort: sortBy, Order: sortOrder, View: viewLayout, 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 viewLayout == "grid" {| Title | ||
|---|---|---|
|
|
{ entry.DisplayTitle() } @watchlist.Progress(entry) |