package templates import ( "fmt" "malago/internal/database" ) templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentStatus string) { @Layout("My Watchlist") {

My Watchlist

Grid | Table
All Watching On Hold Plan to Watch Dropped Completed
if len(entries) == 0 {
Your watchlist is empty. Go search for some anime!
} else { if layout == "grid" {
for _, entry := range entries {
if entry.ImageUrl != "" { { } else {
no image
}
{ entry.Title }
{ entry.Status }
}
} else { for _, entry := range entries { }
Image Title Status
{ { entry.Title } { entry.Status }
} } } } func viewLinkStyle(active bool) string { if active { return "color: var(--text); font-weight: bold; text-decoration: none;" } return "color: var(--text-muted); text-decoration: none;" } func tabLinkStyle(active bool) string { if active { return "color: var(--text); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--text); padding-bottom: 7px;" } return "color: var(--text-muted); text-decoration: none; padding-bottom: 7px;" }