diff --git a/web/templates/watchlist.templ b/web/templates/watchlist.templ index 9658a8d..a457110 100644 --- a/web/templates/watchlist.templ +++ b/web/templates/watchlist.templ @@ -8,34 +8,117 @@ import ( "math" ) -templ Watchlist(entries []db.GetUserWatchListRow, layout string, currentStatus string, sortBy string, sortOrder string) { +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.

+

+ 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}) + @components.SortFilter(components.SortFilterOptions{ + Sort: sortBy, + Order: sortOrder, + View: layout, + Status: currentStatus, + }) if len(entries) == 0 { @components.EmptyState("Nothing here yet") { if currentStatus == "all" { @@ -46,30 +129,46 @@ templ Watchlist(entries []db.GetUserWatchListRow, layout string, currentStatus s } } else { if layout == "grid" { -
+
for _, entry := range entries { - + +
+ }
} else { - +
@@ -79,10 +178,18 @@ templ Watchlist(entries []db.GetUserWatchListRow, layout string, currentStatus s for _, entry := range entries { - + }
- { + { @@ -97,7 +204,9 @@ templ Watchlist(entries []db.GetUserWatchListRow, layout string, currentStatus s hx-delete={ string(templ.URL(fmt.Sprintf("/api/watchlist/%d?from=watchlist", entry.AnimeID))) } hx-target={ fmt.Sprintf("#watchlist-entry-%d", entry.AnimeID) } hx-swap="delete" - >Remove + > + Remove +